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

-1XXX has incorrect min / max #25

Closed
mixmix opened this issue May 12, 2020 · 2 comments
Closed

-1XXX has incorrect min / max #25

mixmix opened this issue May 12, 2020 · 2 comments

Comments

@mixmix
Copy link

mixmix commented May 12, 2020

var test = '-1XXX'
var d = edtf(test)

console.log(new Date(d.min))
// -001000-01-01T00:00:00.000Z  << expect -1999 ? 
console.log(new Date(d.max))
// -001000-12-31T23:59:59.999Z << correct ?

I think this is a bug.

Thanks for making this module, I'm using it to help create indigenous genealogy + history recording in New Zealand. Being able to record dates as humans have remembered them is a total gift ❤️

@barnaclebarnes
Copy link

@mixmix We're based in Auckland and using this in our Curtis platform so in a similar #glamtech space. What are you working on? ping me a note (barnaclebarnes pretty much anywhere, email at bottom of Curtis website).

@inukshuk
Copy link
Owner

@mixmix thanks! This should be fixed in 2.7.2.

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

3 participants