ACCodeSnippetRepositoryPlugin icon indicating copy to clipboard operation
ACCodeSnippetRepositoryPlugin copied to clipboard

fix bug in date formatting

Open codeinthesky opened this issue 10 years ago • 0 comments

see http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns

(this bug is rumored to have brought down Twitter last December)

basically using YY instead of yy means than the last few days in December will be formatted with the wrong year (the following year) since YY looks up the 'week of year'.

codeinthesky avatar May 24 '15 11:05 codeinthesky