File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1711
1711
" Pacific/Wallis" ,
1712
1712
" UTC+12"
1713
1713
]
1714
- }
1714
+ }
Original file line number Diff line number Diff line change @@ -399,16 +399,13 @@ exports.isValidTimezone = (timezone) => {
399
399
400
400
exports . setTimezone = ( bsConfig , args ) => {
401
401
let timezone = args . timezone || bsConfig . run_settings . timezone ;
402
- let newTimezone ;
403
- if ( this . isNotUndefined ( timezone ) && this . isValidTimezone ( timezone ) ) {
404
- newTimezone = timezone ;
405
- } else {
402
+ if ( this . isUndefined ( timezone ) && ! this . isValidTimezone ( timezone ) ) {
406
403
logger . error ( `Invalid timezone = ${ timezone } ` ) ;
407
404
syncCliLogger . info ( chalk . red ( Constants . userMessages . INVALID_TIMEZONE ) ) ;
408
405
process . exit ( 1 ) ;
409
406
}
410
- bsConfig . run_settings . timezone = newTimezone ;
411
- logger . debug ( `Setting timezone = ${ newTimezone } ` ) ;
407
+ bsConfig . run_settings . timezone = timezone ;
408
+ logger . debug ( `Setting timezone = ${ timezone } ` ) ;
412
409
}
413
410
414
411
exports . setRecordFlag = ( bsConfig , args ) => {
You can’t perform that action at this time.
0 commit comments