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

2038 year problem of EventTime (int seconds) #104

Closed
xerial opened this issue Oct 30, 2018 · 1 comment
Closed

2038 year problem of EventTime (int seconds) #104

xerial opened this issue Oct 30, 2018 · 1 comment

Comments

@xerial
Copy link
Contributor

xerial commented Oct 30, 2018

https://github.com/komamitsu/fluency/blob/master/src/main/java/org/komamitsu/fluency/EventTime.java#L33-L34

EventTime uses 32-bit singed integers, and it will hit the limit at 2038-01-18 19:14:07+00:00 (= unixtime of 2^31 - 1)

If we use long for epoch seconds (to support uint32), the limit can be extended to 2106-02-06 22:28:15+00:00.

@komamitsu
Copy link
Owner

Good catch! Thanks for reporting it.

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