I'm writing a ClientScript to find out how much ti...
# suitescript
b
I'm writing a ClientScript to find out how much time has passed since the last scheduled script ran. The problem right now is that server timezone and clientscript timezone is different since the latter runs in the browser. When I load the date from the server, it only gives me a string with a date and time, not a Date object of course. How do I effectively get the difference between the two?
b
t
message has been deleted
Timezones are awful. You are basically going to want to try and utilize NetSuite's format timezone functions or just add / subtract hours using native Date methods.