Content deleted Content added
→Invalid dates: new section |
→Invalid dates: do not autocorrect invalid dates! |
||
Line 98:
<code><nowiki>{{date table sorting|2018/02/29|format=dmy|abbr=off}}</nowiki></code> should output <code>{{sort|2018-03-01|1 March 2018}}</code> instead it outputs as <code>{{date table sorting|2018/02/29|format=dmy|abbr=off}}</code>, is there anyway to correct February 29th as March 1st when the year is not a leap year?
Same goes with <code><nowiki>{{date table sorting|June 31, 1995}}</nowiki></code> should output <code>{{sort|1995-07-01|July 1, 1995}}</code> instead it outputs as <code>{{date table sorting|June 31, 1995}}</code>, is there anyway to correct June 31st as July 1st? --[[Special:Contributions/98.31.29.4|98.31.29.4]] ([[User talk:98.31.29.4|talk]]) 17:05, 4 August 2019 (UTC)
:Please do not attempt to "autocorrect" invalid dates! The templates based on [[Module:Age]] (not this template) only accept dates in an unambiguous format, and always display an error with a tracking category when a date is invalid. That catches a surprisingly large amount of mucking around with dates which need to be reverted, not autocorrected to invalid data. This template handles fantastically large dates for use in astronomical tables and similar, whereas the Module:Age templates only handle from 9999 BCE to 9999 CE. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 22:47, 4 August 2019 (UTC)
|