datetimepicker icon indicating copy to clipboard operation
datetimepicker copied to clipboard

can't find DateFormatter in 2.4.6

Open kellyselden opened this issue 8 years ago • 43 comments

not ok 1 PhantomJS 2.1 - Global error: ReferenceError: Can't find variable: DateFormatter

worked in 2.4.5

kellyselden avatar Feb 14 '16 21:02 kellyselden

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

panthony avatar Feb 15 '16 09:02 panthony

screen shot 2016-02-15 at 14 38 24

stefanbraspenning avatar Feb 15 '16 13:02 stefanbraspenning

+1

valkirilov avatar Feb 15 '16 17:02 valkirilov

I have the same issue, 2.4.6 ver. seems to be broken

konradrr avatar Feb 15 '16 22:02 konradrr

+1

diskit avatar Feb 16 '16 04:02 diskit

+1

JiveDig avatar Feb 16 '16 06:02 JiveDig

+1

kenelliott avatar Feb 16 '16 14:02 kenelliott

+1

axelguiloff avatar Feb 16 '16 14:02 axelguiloff

+1

ghost avatar Feb 16 '16 19:02 ghost

Also having this issue, also in 2.4.7

chrismllr avatar Feb 17 '16 00:02 chrismllr

+1 Uncaught ReferenceError: DateFormatter is not defined

Able1991 avatar Feb 17 '16 12:02 Able1991

Um. +1.

itamark avatar Feb 18 '16 13:02 itamark

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 avatar Feb 18 '16 13:02 xdan

@xdan Can you add that package as a dependency to bower.json?

levacic avatar Feb 21 '16 14:02 levacic

+1

benbabics avatar Feb 22 '16 02:02 benbabics

+1

liangkaile avatar Feb 24 '16 06:02 liangkaile

Added

xdan avatar Feb 24 '16 13:02 xdan

Still not fixed:

Uncaught ReferenceError: DateFormatter is not defined

valkirilov avatar Feb 25 '16 08:02 valkirilov

yes still having

Uncaught ReferenceError: DateFormatter is not defined

ashish-joshi-sr avatar Feb 25 '16 13:02 ashish-joshi-sr

If you're installing via npm, require('jquery-datetimepicker/build/jquery.datetimepicker.full') worked for me —instead of require('jquery-datetimepicker'). See PR #399

willemvb avatar Feb 25 '16 13:02 willemvb

yes it works fine when install it using npm... thanks..

ashish-joshi-sr avatar Feb 26 '16 06:02 ashish-joshi-sr

+1

IoannesPaulus avatar Apr 04 '16 08:04 IoannesPaulus

+1

hacktivista avatar Apr 18 '16 14:04 hacktivista

use build/jquery.datetimepicker.full.min.js rather jquery.datetimepicker.min.js to fix Uncaught ReferenceError: DateFormatter is not defined error.

syed-haroon avatar Apr 19 '16 08:04 syed-haroon

If the workable scripts can be accessed in build/, why not just remove the jquery.datetimepicker.min.js?

wonderchang avatar Apr 23 '16 18:04 wonderchang

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

jxbolt avatar May 01 '16 17:05 jxbolt

+1

jmnote avatar May 02 '16 08:05 jmnote

fixed

syastrebov avatar May 31 '16 09:05 syastrebov

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

hacktivista avatar Jun 06 '16 08:06 hacktivista

Still not fixed in unminified file in 2.5.4. Minified file works.

stibay avatar Jun 17 '16 11:06 stibay