datetimepicker
datetimepicker copied to clipboard
can't find DateFormatter in 2.4.6
not ok 1 PhantomJS 2.1 - Global error: ReferenceError: Can't find variable: DateFormatter
worked in 2.4.5
Same here, the 2.4.6 release broke my app I had to force the 2.4.5 version to get it working again
Uncaught ReferenceError: DateFormatter is not defined
+1
I have the same issue, 2.4.6 ver. seems to be broken
+1
+1
+1
+1
+1
Also having this issue, also in 2.4.7
+1 Uncaught ReferenceError: DateFormatter is not defined
Um. +1.
Not so long ago switched dateparser plug-in library
bower install php-date-formatter
But it is already in build/jquery.datetimepicker.full.min.js
so you can use it
@xdan Can you add that package as a dependency to bower.json
?
+1
+1
Added
Still not fixed:
Uncaught ReferenceError: DateFormatter is not defined
yes still having
Uncaught ReferenceError: DateFormatter is not defined
If you're installing via npm, require('jquery-datetimepicker/build/jquery.datetimepicker.full')
worked for me —instead of require('jquery-datetimepicker')
.
See PR #399
yes it works fine when install it using npm... thanks..
+1
+1
use build/jquery.datetimepicker.full.min.js
rather jquery.datetimepicker.min.js
to fix Uncaught ReferenceError: DateFormatter is not defined
error.
If the workable scripts can be accessed in build/
, why not just remove the jquery.datetimepicker.min.js
?
The .min.js file has code from another jquery plugin pasted into the top. Here is the JS file for the other plugin https://github.com/kartik-v/php-date-formatter/blob/master/js/php-date-formatter.js
+1
fixed
Initially I've posted saying it's not fixed for me. Because I did use the file inside the build
folder.
Now the DateFormatter error does not appear, but I don't know how to use Moment.js then. When following the instructions to change according formatter to documentation, the Javascript console shows:
TypeError: $.datetimepicker.setDateFormatter is not a function TypeError: i.dateFormat is not a function
Still not fixed in unminified file in 2.5.4. Minified file works.