Skip to content

Pg suffers from Y10K problem #441

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

Closed
moll opened this issue Sep 15, 2013 · 9 comments
Closed

Pg suffers from Y10K problem #441

moll opened this issue Sep 15, 2013 · 9 comments
Labels

Comments

@moll
Copy link

moll commented Sep 15, 2013

This is because of dateMatcher in textParsers.js expects years to be 4 characters. https://en.wikipedia.org/wiki/Y10K

@booo
Copy link
Contributor

booo commented Sep 16, 2013

Thanks for reporting the problem. Can you provide us with a few lines of code to reproduce the problem or a failing test case?

@moll
Copy link
Author

moll commented Sep 16, 2013

Well, just create a date column in the database and insert a date above 10K there. ;)

@booo
Copy link
Contributor

booo commented Sep 17, 2013

Something like:

SELECT DATE '20000-01-01'

@domino14
Copy link

domino14 commented Dec 9, 2013

Can this be handled in another few thousand years?

@moll
Copy link
Author

moll commented Dec 9, 2013

Sadly, no. Unless all PostgreSQL users so far have been religious, the world also started more than 10k years ago. ;)

@benighted
Copy link
Contributor

Unfortunately PostgreSQL does not support dates early than 4713 BCE (see manual). However I did fix pg's y10k issue with pull request #480 so you can record your pet dinosaur's birth date whenever PostgreSQL adds support for that date. 😄

@moll
Copy link
Author

moll commented Dec 10, 2013

Cool. Thanks, @benighted! Life is difficult for us time-travelers.

brianc added a commit that referenced this issue Dec 12, 2013
Fix for Y10k problem, see issue #441.
@charmander
Copy link
Collaborator

This is fixed now, right?

@brianc
Copy link
Owner

brianc commented Oct 20, 2014

This is fixed now, correct. Thanks @charmander - I was stuck under the rock of working too many hours at my startup not having enough time to work on this.

@brianc brianc closed this as completed Oct 20, 2014
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

6 participants