Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants