Skip to content

datetime: add TZ support #200

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

Merged
merged 2 commits into from
Aug 11, 2022
Merged

Conversation

oleg-jukovec
Copy link
Collaborator

@oleg-jukovec oleg-jukovec commented Jul 28, 2022

The patch adds timezone support [1] for datetime. For the purpose of compatibility we got constants for timezones from Tarantool [2]. The patch adds a script to generate the data according to the instructions [3].

  1. https://github.com/tarantool/tarantool/wiki/Datetime-Internals#timezone-support
  2. https://github.com/tarantool/tarantool/blob/9ee45289e01232b8df1413efea11db170ae3b3b4/src/lib/tzcode/timezones.h
  3. https://github.com/tarantool/tarantool/blob/9ee45289e01232b8df1413efea11db170ae3b3b4/src/lib/tzcode/gen-zone-abbrevs.pl#L35-L39

I didn't forget about (remove if it is not applicable):

Related issues:

Closes #163

@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/gh-163-datetime-tz branch from dde0ab8 to eda01e1 Compare July 28, 2022 14:30
@oleg-jukovec oleg-jukovec requested review from AnaNek and vr009 July 28, 2022 15:30
@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/gh-163-datetime-tz branch from eda01e1 to eabefed Compare August 2, 2022 11:40
@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/gh-163-datetime-tz branch 5 times, most recently from 2fbb50b to e51a5b3 Compare August 4, 2022 14:06
Copy link
Member

@DifferentialOrange DifferentialOrange left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems awesome.

I have left a couple of questions

@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/gh-163-datetime-tz branch 2 times, most recently from 54d5676 to 938d44b Compare August 5, 2022 13:18
@oleg-jukovec
Copy link
Collaborator Author

oleg-jukovec commented Aug 5, 2022

I've made a separate pull request to fix golangci-lint errors:
#204

We can ignore it here.

@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/gh-163-datetime-tz branch 3 times, most recently from 6082fb5 to f317da8 Compare August 8, 2022 11:56
Copy link

@vr009 vr009 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please, check my comments.

After the patch all messages in datetime tests start with a capital
letter. All errors start with a lowecase letter [1].

1. https://github.com/golang/go/wiki/CodeReviewComments#error-strings
@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/gh-163-datetime-tz branch from f317da8 to f100dc2 Compare August 11, 2022 09:38
@oleg-jukovec oleg-jukovec merged commit 913bf30 into master Aug 11, 2022
@oleg-jukovec oleg-jukovec deleted the oleg-jukovec/gh-163-datetime-tz branch August 11, 2022 10:54
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

Successfully merging this pull request may close these issues.

Support TZ in datetime
3 participants