scholarslab / NeatlineTime

http://neatline.org/
Apache License 2.0
16 stars 11 forks source link

Date Processing in Daniel-KM Fork of NeatlineTime #90

Open alexanderlewis99 opened 6 years ago

alexanderlewis99 commented 6 years ago

Hi,

I am using the Daniel-KM Fork of NeatlineTime. When I add an item to my timeline, unless the date values for my items follows the YYYY-MM-DD format, one the timeline the date appear as January 1, 1970. So for instance, if I have the date value equal 2012-02-01, it works fine, but if I have the date value equal February 1, 2012, then my timeline will display the date as January 1, 1970.

In the documentation it says that example date values we can use are: January 1, 2012 2012-01-01 1 Jan 2012 2012-12-15 but since not all of these work I thought I'd report this problem as an issue here.

Thanks.

Daniel-KM commented 6 years ago

The documentation may be not up to date, or the feature may be missing.

Anyway, the date depends on many things, in particular the locale of the server, the locale of Apache, the locale of Php, and many other things. The better is to manage date as pure iso in metadata, so they will be more maintainable and more shareable in the long term. Then, the theme can apply a localization of the date.