Giter Site home page Giter Site logo

Comments (12)

soderlind avatar soderlind commented on August 27, 2024

Which PHP version do you have ?

from acf-field-date-time-picker.

dannykater avatar dannykater commented on August 27, 2024

I have the same problem. Date time picker suddenly stopped working. I think this happened after changing Wordpress from EN to NL.

Any solution already?

from acf-field-date-time-picker.

soderlind avatar soderlind commented on August 27, 2024

@dannykater You just changed from EN to NL, i.e. it's the same installation ? Reason I ask is if it's a different installation and the PHP version differ (and PHP is less that 5.3), it can be the problem.

from acf-field-date-time-picker.

soderlind avatar soderlind commented on August 27, 2024

btw .. if you'd like it to work as in 2.0.5 (not saveing date and time as a timestap), you can set this where you create the field.

NOTE, this will mess up your existing date and time values since they are in timestamp format.

from acf-field-date-time-picker.

dannykater avatar dannykater commented on August 27, 2024

@soderlind Yes it's the same installation. Changed language in wp-config.php and then updated to NL version.

It is working with timestamp on EN. So i dont see a reason to change that. Unfortunately it doesnt work in NL.

For some reason the "Date and Time Picker" doesn't change to NL language. The language is available in localization folder. Maybe it's got something to do with this?

from acf-field-date-time-picker.

dannykater avatar dannykater commented on August 27, 2024

@soderlind OK another update. I just changed the language to EN in the NL installation. And now the Fatal Error is not there anymore. So my conclussion is that the problem is related to the WP_LANG.

On NL it's not working. On EN it does. Regardsless the installation.

from acf-field-date-time-picker.

soderlind avatar soderlind commented on August 27, 2024

On Post->Add New (if it's where you have your date and time picker field), please do a view-source.

Search for timepicker_objectL10n, are the monthNames etc in Dutch?

Also search for acf-field-date-time-picker/js/localization/, if you find it, is the file?:
acf-field-date-time-picker/js/localization/jquery-ui-timepicker-nl.js?ver=2.0.8

from acf-field-date-time-picker.

dannykater avatar dannykater commented on August 27, 2024

@soderlind The monthNames are in Dutch.

The file is Yes: acf-field-date-time-picker/js/localization/jquery-ui-timepicker-nl.js?ver=2.0.8

from acf-field-date-time-picker.

soderlind avatar soderlind commented on August 27, 2024

Ok. I'm working with a fix for the date problem (converting between timestamp and the date / time format).

btw, which PHP version are you using ?

from acf-field-date-time-picker.

dannykater avatar dannykater commented on August 27, 2024

My hosting is running on PHP 5.3.x.

Can i solve this temporarely by not using the timestamp format, but the date / time instead?

from acf-field-date-time-picker.

soderlind avatar soderlind commented on August 27, 2024

Yes, not using the timestamp format should fix it. Date and time will be saved as a string in the same format you set when you created the field.

from acf-field-date-time-picker.

dannykater avatar dannykater commented on August 27, 2024

Hmm, nice. Everything is working now!

Setting: Save as timestamp? NO. (Language and installation are NL.) No more Fatal Error and front end in good language.

Good luck with solving the bug on timestamp and other languages than English.

Thanks for the quick help.

from acf-field-date-time-picker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.