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

Years 0-99AD default to the 20th century (1900+) #347

Open
badzster opened this issue Apr 30, 2015 · 1 comment
Open

Years 0-99AD default to the 20th century (1900+) #347

badzster opened this issue Apr 30, 2015 · 1 comment

Comments

@badzster
Copy link

I am trying to create a timeline which includes the years 1-99AD. Unfortunately, if I use the following date: 14-08-19 (YY-MM-DD), it defaults to the year 1914. Changing the year 14AD to 100AD the problem goes away. Also, there is no year 0. Only 1BC and 1AD. How would I fix this? Thanks for you help - it is a great script.

@josdejong
Copy link
Contributor

In modern browsers you can create a date like new Date('0001-03-18'). You could also provide a unix timestamp like -62129030400000.

See also this related discussion in the successor of chap-links-library: almende/vis#307

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