Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
handling date/ time in suite script
We are fairly new to NetSuite, but old hands at CRM. We have an event-driven environment, and when those events happen needs to be logged in the NetSuite system.
When accessing date/ time fields through the UI, or defaulting the fields, it is possible to say to the system that an event happened 'now', and that is modified to be 'now' in the local timezone. However, if a suite script places a call to Date(), it gets the server time, which isn't our timezone, and if it writes that value into the date field, the time shows as server time, not local time.
0