mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 01:15:56 +00:00
upgrade Dojo to 1.6.1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
||||
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
*/
|
||||
@@ -9,6 +9,8 @@ if(!dojo._hasResource["dojo.date.stamp"]){ //_hasResource checks added by build.
|
||||
dojo._hasResource["dojo.date.stamp"] = true;
|
||||
dojo.provide("dojo.date.stamp");
|
||||
|
||||
dojo.getObject("date.stamp", true, dojo);
|
||||
|
||||
// Methods to convert dates to or from a wire (string) format using well-known conventions
|
||||
|
||||
dojo.date.stamp.fromISOString = function(/*String*/formattedString, /*Number?*/defaultTime){
|
||||
@@ -87,7 +89,7 @@ dojo.date.stamp.fromISOString = function(/*String*/formattedString, /*Number?*/d
|
||||
}
|
||||
|
||||
return result; // Date or null
|
||||
}
|
||||
};
|
||||
|
||||
/*=====
|
||||
dojo.date.stamp.__Options = function(){
|
||||
@@ -137,12 +139,12 @@ dojo.date.stamp.toISOString = function(/*Date*/dateObject, /*dojo.date.stamp.__O
|
||||
}else if(options.selector != "time"){
|
||||
var timezoneOffset = dateObject.getTimezoneOffset();
|
||||
var absOffset = Math.abs(timezoneOffset);
|
||||
time += (timezoneOffset > 0 ? "-" : "+") +
|
||||
time += (timezoneOffset > 0 ? "-" : "+") +
|
||||
_(Math.floor(absOffset/60)) + ":" + _(absOffset%60);
|
||||
}
|
||||
formattedDate.push(time);
|
||||
}
|
||||
return formattedDate.join('T'); // String
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user