This commit is contained in:
rolux 2014-02-18 17:35:28 +05:30
parent 464fcf6971
commit 3fd702d72e

View file

@ -254,7 +254,7 @@ Ox.makeDate <f> Takes a date, number or string, returns a date
@*/ @*/
Ox.makeDate = function(date) { Ox.makeDate = function(date) {
// Safari 4/5 does not parse YYYY, YYYY-MM or YYYY-MM-DD as date // Safari 4/5 does not parse YYYY, YYYY-MM or YYYY-MM-DD as date
if (Ox.isString(date) && $.browser.safari && $.browser.version <= '534.59.10') { if ($.browser.safari && $.browser.version <= '534.59.10' && Ox.isString(date)) {
if (/^\d{4}$/.test(date)) { if (/^\d{4}$/.test(date)) {
date += '-01-01'; date += '-01-01';
} else if (/^\d{4}-\d{2}$/.test(date)) { } else if (/^\d{4}-\d{2}$/.test(date)) {