File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -395,12 +395,14 @@ exports.isValidTimezone = (timezone) => this.isNotUndefined(timezone) && this.is
395
395
exports . setTimezone = ( bsConfig , args ) => {
396
396
let timezone = args . timezone || bsConfig . run_settings . timezone ;
397
397
let newTimezone ;
398
- if ( this . isValidTimezone ( timezone ) ) {
399
- newTimezone = timezone ;
400
- } else {
401
- logger . error ( `Invalid timezone = ${ timezone } ` ) ;
402
- syncCliLogger . info ( chalk . red ( Constants . userMessages . INVALID_TIMEZONE ) ) ;
403
- process . exit ( 1 ) ;
398
+ if ( this . isNotUndefined ( timezone ) ) {
399
+ if ( this . isValidTimezone ( timezone ) ) {
400
+ newTimezone = timezone ;
401
+ } else {
402
+ logger . error ( `Invalid timezone = ${ timezone } ` ) ;
403
+ syncCliLogger . info ( chalk . red ( Constants . userMessages . INVALID_TIMEZONE ) ) ;
404
+ process . exit ( 1 ) ;
405
+ }
404
406
}
405
407
bsConfig . run_settings . timezone = newTimezone ;
406
408
logger . debug ( `Setting timezone = ${ newTimezone } ` ) ;
You can’t perform that action at this time.
0 commit comments