Commit 5dcc234 1 parent 905f8d5 commit 5dcc234 Copy full SHA for 5dcc234
File tree 2 files changed +2
-3
lines changed
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 {
118
118
if ( dataSegmentClose && dataSegmentClose . length ) {
119
119
const currentQuote = dataSegmentClose [ dataSegmentClose . length - 1 ] ;
120
120
if ( currentQuote . DT ) {
121
- const now = this . _serverTime . getLocalDate ( ) . getTime ( ) ;
121
+ const now = this . _serverTime ? .getLocalDate ( ) ? .getTime ( ) ;
122
122
const diff = now - currentQuote . DT . getTime ( ) ;
123
123
124
124
const granularity = this . mainStore . chart . granularity ;
Original file line number Diff line number Diff line change @@ -84,8 +84,7 @@ class ServerTime {
84
84
if ( this . serverTimeAtResponse ) {
85
85
return this . serverTimeAtResponse ;
86
86
}
87
-
88
- throw new Error ( 'Server time is undefined!' ) ;
87
+ return getUTCEpoch ( new Date ( ) ) ;
89
88
}
90
89
91
90
getLocalDate ( ) {
You can’t perform that action at this time.
0 commit comments