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

Jira Entry is created on wrong date for US/Ecuador timezones #9

Closed
ralf-br opened this issue Jan 16, 2020 · 0 comments
Closed

Jira Entry is created on wrong date for US/Ecuador timezones #9

ralf-br opened this issue Jan 16, 2020 · 0 comments
Labels

Comments

@ralf-br
Copy link
Owner

ralf-br commented Jan 16, 2020

There is some issue with timezones reported in the comments of the chrome store: https://chrome.google.com/webstore/detail/harvest-%3E-jira-sync/imogkeoglmoaghpegcmghjicbdgbahio

  • George: Time zone is wrong for me. I'm in Ecuador, and it logs time as yesterday :(
  • Dan: Same issue here - it logs time one day before.
  • Samuel: Also want to confirm on PST timezone it tracks to previous day, otherwise great addon!

When the timezone is west of UTC the offset is for ex. -08:00 and standard JS date function parses the given date as "yesterday 8 hours before midnight".
=> Switch to momentjs implementation which takes the given date as midnight of the given date in the users timezone. We then add 9 hours (as we don't have another start date in harvest) and transmit the correct date/time to jira. Jira is then hopefully configured in the same timezone ^^

@ralf-br ralf-br added the bug label Jan 16, 2020
ralf-br pushed a commit that referenced this issue Jan 16, 2020
closes #9 resolve timezone issue for people in america when syncing to jira
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant