maxlath/wikibase-sdk

Add support for very long BC dates on `wikidataTimeToISOString`

moshest opened this issue · 3 comments

I'm not familiar with any time frame limitation for the ISO format.

I think that the method wikidataTimeToISOString should always return a valid ISO string even if the date if not valid of native Date object. This behaviour is more consistent.

For example:

wdk.wikidataTimeToISOString('-13798000000-00-00T00:00:00Z')
'-13798000000-01-01T00:00:00Z'

should be fixed by 0406b47, published in v5.9.6

@moshest thanks for spotting!