File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ export default class TimeperiodStore {
118118 if ( dataSegmentClose && dataSegmentClose . length ) {
119119 const currentQuote = dataSegmentClose [ dataSegmentClose . length - 1 ] ;
120120 if ( currentQuote . DT ) {
121- const now = this . _serverTime . getLocalDate ( ) . getTime ( ) ;
121+ const now = this . _serverTime ? .getLocalDate ( ) ? .getTime ( ) ;
122122 const diff = now - currentQuote . DT . getTime ( ) ;
123123
124124 const granularity = this . mainStore . chart . granularity ;
Original file line number Diff line number Diff line change @@ -84,8 +84,7 @@ class ServerTime {
8484 if ( this . serverTimeAtResponse ) {
8585 return this . serverTimeAtResponse ;
8686 }
87-
88- throw new Error ( 'Server time is undefined!' ) ;
87+ return getUTCEpoch ( new Date ( ) ) ;
8988 }
9089
9190 getLocalDate ( ) {
You can’t perform that action at this time.
0 commit comments