Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Moment Timezone has no data for IST. See http://momentjs.com/timezone/docs/#/data-loading/. - ERROR

Community Alums
Not applicable

Hi,

I get error message in console when i use IST as time Zone for a Walk-Up location. 

Sha5_0-1683302222982.png

Sha5_1-1683302369051.png

Its happening only for IST time zone, other time zones works fine.

1 REPLY 1

Ben Vargas
Tera Guru

Stumbled on this and I saw that nobody chimed in... you can see a list of Moment Timezone supported values by checking moment.tz.names().

 

Background Script such as...

 

(function(){  
	
	gs.include('moment.min.js');
    gs.include('moment-timezone-with-data.min.js');

	gs.log(moment.tz.names());

})();

 

I suspect you're going to run into issues with "IST" because does that mean "India Standard Time" or "Irish Standard Time"... two completely different times, and not a standardized/supported time with unique naming. Perhaps if "India Standard Time" is meant by "IST" you'd be better off using "Asia/Kolkata" which is fixed at India Standard Time (UTC+5:30/GMT+5:30) with no daylight savings time.

 

I recognize this post is over a year old, so probably not of use to you anymore... but maybe it will help someone else who stumbles upon this.