This commit is contained in:
j 2014-09-13 15:59:44 +01:00
commit 6a9b60ddca
2 changed files with 4 additions and 2 deletions

View file

@ -252,6 +252,8 @@ Ox.makeDate <f> Takes a date, number or string, returns a date
'1970'
> Ox.formatDate(Ox.makeDate('1970-05'), '%Y-%m')
'1970-05'
> Ox.formatDate(Ox.makeDate(Ox.parseDate('-50')), '%Y')
'-50'
@*/
Ox.makeDate = function(date) {
// Safari 4/5 (<= 534.59.10) doesn't parse YYYY, YYYY-MM or YYYY-MM-DD