is there a way to change a timezone of the user pu...
# ask-stanley-ai
p
is there a way to change a timezone of the user pulling data from the netsuite.com connector
c
AI generated answer (using internal Slack threads):
Based on the conversations, it appears that the timezone of the user pulling data from the NetSuite connector cannot be directly changed. However, there are ways to work around this. In NetSuite, dates are represented as midnight in the timezone set in the UI. For example, a date of 2022-04-18 for GMT is actually represented as 2022-04-18T000000.000+00:00. This means that the timezone of the user pulling the data can influence the resulting datetime. If you need to get the company's timezone, you can do so via
N/config
and load the Company Information values. However, there is not necessarily a User in the Scheduled Script context. If the user is calling an on-demand scheduled script that needs the user's timezone, you could have the calling script (UE, CS?) determine the user's timezone and pass it as a parameter to the scheduled script. If no timezone is provided via parameter, you could default to the Company Timezone. For handling daylight savings, it's important to note that NetSuite's (GMT) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London timezone is actually Europe/London, which does observe daylight saving time. So, you may need to account for this in your code. Remember, the timezone settings in NetSuite are based on standard time settings, so you must keep in mind the required adjustments during daylight saving time in the year. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.849872291
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832142234
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.827586532
Please provide your feedback on this answer.