Hi all! Is it true that all of NetSuite's applicat...
# suitescript
b
Hi all! Is it true that all of NetSuite's application servers use the Pacific Time time zone? I.e. there is no option to change this? I'm talking about the TZ for backend SuiteScript. E.g. a new Date() has the PDT TZ currently.
c
It uses the timezone of wherever the server is located. If you use the N/format module whenever you interact with dates, you should be solid.
b
@creece Thanks. Yes, I'll just have to use N/format for every date or date-time I generate. Unfortunately I'm dealing with loads of legacy SS 1.0 code and it's less elegant to do the same thing there. I was hoping there would be a way to change this time zone to the primary TZ my client operates in (Central Time) so I could do away with all the formatting/TZ conversions. We're migrating off a OneWorld account where it was even more complicated because the parent subsidiary was in yet another TZ.
s
I do seem to recall the timezone being Pacific Time for all servers from a server-side SuiteScript perspective.
👀 1
c
Depending on when you read this it may have been true since most of them were in that time zone. If you have one in a different time zone, it should be whatever time zone the server is located in. Either way using the N/format should make it a non-issue
💯 1
b
@creece Thanks. I asked mainly because of all our SS1.0 legacy code. (No N/format.)