aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/datepicker.js
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2016-10-25 18:27:31 +0200
committerFelix Nagel <info@felixnagel.com>2016-10-25 18:27:31 +0200
commit2c43879a46d41060b68963778388ec582e00fa43 (patch)
tree5ce298d4d3c927e8fe9af7568c7ac156d717b7a5 /ui/widgets/datepicker.js
parentf010087acae69dff67252236e4159c79124dd30b (diff)
downloadjquery-ui-2c43879a46d41060b68963778388ec582e00fa43.tar.gz
jquery-ui-2c43879a46d41060b68963778388ec582e00fa43.zip
Datepicker: Use simple split instead of globalize for parsing attributes
This reverts commit ea986f2808684c0112d56776d76ea35e9cdb77da.
Diffstat (limited to 'ui/widgets/datepicker.js')
-rw-r--r--ui/widgets/datepicker.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/widgets/datepicker.js b/ui/widgets/datepicker.js
index e2e9037e8..6e1f5be73 100644
--- a/ui/widgets/datepicker.js
+++ b/ui/widgets/datepicker.js
@@ -81,7 +81,11 @@ var widget = $.widget( "ui.datepicker", {
_getCreateOptions: function() {
var max = this.element.attr( "max" ),
min = this.element.attr( "min" ),
- parser = new Globalize( "en" ).dateParser( { raw: "yyyy-MM-dd" } ),
+ parser = function( value ) {
+ var exploded = value.split( "-" );
+
+ return new Date( exploded[ 0 ], exploded[ 1 ] - 1, exploded[ 2 ] );
+ },
options = {};
if ( max !== undefined ) {