Skip to content

Commit

Permalink
fix: Formatting of timestamps on streamed market prices (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
TweededBadger committed Feb 19, 2022
1 parent 61cefb8 commit c638807
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lightstreamer/LightstreamerAPI.ts
Expand Up @@ -78,8 +78,8 @@ export class LightstreamerAPI {
bid: parseFloat(item.getValue(ChartFields.BID_OPEN)),
lastTraded: parseFloat(item.getValue(ChartFields.LTP_OPEN)),
},
snapshotTime: dt.toFormat('yyyy/LL/dd hh:mm:ss'),
snapshotTimeUTC: dt.toFormat("yyyy-LL-dd'T'hh:mm:ss"),
snapshotTime: dt.toFormat('yyyy/LL/dd HH:mm:ss'),
snapshotTimeUTC: dt.toFormat("yyyy-LL-dd'T'HH:mm:ss"),
};

onCandleUpdate(epic, candle);
Expand Down

0 comments on commit c638807

Please sign in to comment.