Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSSQL time zone change #40

Open
jonathangull opened this issue Jul 8, 2022 · 1 comment
Open

MSSQL time zone change #40

jonathangull opened this issue Jul 8, 2022 · 1 comment

Comments

@jonathangull
Copy link

As per recommendation, we have created the data pump daemon user with a GMT timezone. However, The date-time timezone in MSSQL tables is GMT and our service now is local time zone 'Asia/Singapore'.

We would like to standardize on local timezone, is it possible for data pump to copy the date time data in local timezone from SN than in GMT?

Looking at documentation of timezone in datapump, there does not seem to be an option like
set time_zone = 'US/Eastern'; in MSSQL.

Please advise

@gflewis
Copy link
Owner

gflewis commented Jul 9, 2022

Just to clarify, ServiceNow always stores date/time values in GMT, regardless of the configured system time zone. The REST API always returns date/time values in GMT. It sounds like you are requesting that SNDML use the database local timezone (instead of GMT) when writing date/time values to the database.

I did a bit of investigation. GMT is currently hard-coded. You will see it if you look at the file main/java/sndml/datamart/DatabaseStatement.java line 32. It should be possible to make the code more flexible by switching to a soft-coded time zone that could be changed via a property in the connection profile.

Unfortunately, I am not currently able to test this change. I will need to spin up an MSSQL database. I will put this on the list of enhancements for the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants