You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the date filter to output a date with the following format:
{{ current_article.date | date: '%d %B %Y' }}
However it is returning 15 undefined 2014. It looks like toLocaleDateString() is returning the date in the format dd/mm/yyyy rather than what was expected in the filters file i.e. Wednesday April 11 2012.
I'm using the date filter to output a date with the following format:
However it is returning
15 undefined 2014
. It looks liketoLocaleDateString()
is returning the date in the formatdd/mm/yyyy
rather than what was expected in the filters file i.e. Wednesday April 11 2012.See: https://github.com/leizongmin/tinyliquid/blob/master/lib/filters.js#L209-L210
EDIT: it would seem that the format is dependant on the platform, locale and user's settings.
http://stackoverflow.com/a/8002651/1311767
The text was updated successfully, but these errors were encountered: