RE: Which settings in Netsuite controls the time zone of the createddate field?

Hi all,

After billing the sales order and generated an invoice using the UI. The created date timezone set by Netsuite was different than the due date set by a user event script I wrote. I know if I used new Date() in javascript it will create a date object in PST/PDT time zone. but I want to know what controls the timezone of  the “createddate” field to balance the difference.


Add Comment
1 Answers

TIMEZONE field of the current user’s preferences. Use User.getPreference to get timezone id. Keep in mind that you may be able to ignore timezone offset logic by taking advantage that Record.setValue and format.format both convert Dates to the current user’s timezone.

Advanced Answered on May 7, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.