Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Use getTime for UTC conversion #308

Closed
wants to merge 1 commit into from

Conversation

tanner-bruce
Copy link
Contributor

What this PR does / why we need it:

Fixes the convertToUTC function by using Date.prototype.getTime(), which returns a UTC time.

Which issue(s) this PR fixes:
Fixes #307

Special notes for your reviewer:

I removed the convertToUTC function completely and replaced with the builtin getTime() which returns a UTC time already.

Release note:

If using a TIMESTAMP column along with the Convert to UTC option, along with a time shift, data may now be shifted incorrectly

@ofir5300
Copy link
Collaborator

@tanner-bruce like mentioned in #307, no actual issue detected (tried reproducing it in many ways).
If you disagree I encourage you to raise an issue once again.

@ofir5300 ofir5300 closed this Mar 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UTC conversion is returning offset data
2 participants