Giter Site home page Giter Site logo

Comments (14)

soderlind avatar soderlind commented on July 24, 2024

What's the date format you're using ? There's an issue when saving as timestamp. On a new site, you can try to set Save as timestamp = NO.

from acf-field-date-time-picker.

mikespainhower avatar mikespainhower commented on July 24, 2024

date format is yy-mm-dd.

I updated them to not use timestamps, and the problem persists.

I also created new fields on a fresh WordPress install (with and without timestamps), no luck.

from acf-field-date-time-picker.

soderlind avatar soderlind commented on July 24, 2024

Ok, I'll look into it. Thank you for reporting this issue.

from acf-field-date-time-picker.

mikespainhower avatar mikespainhower commented on July 24, 2024

I think the problem is the key name at https://github.com/soderlind/acf-field-date-time-picker/blob/master/date_time_picker-v4.php#L28

Changing that key from 'value' to 'default_value' fixes the problem.

from acf-field-date-time-picker.

jvwrx avatar jvwrx commented on July 24, 2024

@mikespainhower's 'default_value' solution fixed it for me as well. (Thanks!)

from acf-field-date-time-picker.

ramathorn89 avatar ramathorn89 commented on July 24, 2024

I think this is of the same nature as my recently posted question: #15

I'll see if @mikespainhower's suggestion fixes my problem, then edit this post if so...

@mikespainhower's 'default_value' fix has also worked for me, however, if I select 20:42 (which is 8:42pm), it changes my entry to 08:42 (am), and upon save has changed the entry to 08:42 (does not save as 20:42...)

from acf-field-date-time-picker.

bhargavy avatar bhargavy commented on July 24, 2024

@mikespainhower fix is working for me too.

from acf-field-date-time-picker.

ramathorn89 avatar ramathorn89 commented on July 24, 2024

Is anyone else still experiencing a problem with data clearing upon save...and any afternoon values (ie: 20:00) turning into 8:00 onblur?

from acf-field-date-time-picker.

jvwrx avatar jvwrx commented on July 24, 2024

@ramathorn89 Fix is still working and I'm not experiencing your morning/afternoon issue.

from acf-field-date-time-picker.

bhargavy avatar bhargavy commented on July 24, 2024

@ramathorn89 what @MrJustin said

from acf-field-date-time-picker.

mikespainhower avatar mikespainhower commented on July 24, 2024

@ramathorn89 what @MrJustin said

from acf-field-date-time-picker.

ramathorn89 avatar ramathorn89 commented on July 24, 2024

It seems it was working, but there was just no identifier dictating whether a value was morning or afternoon. It was still changing a 20:00, for example, to 08:00, but when I changed the time formatting to 'h:mm TT', I was able to see whether a value was AM or PM...

from acf-field-date-time-picker.

soderlind avatar soderlind commented on July 24, 2024

Please see #19 (comment)

from acf-field-date-time-picker.

ronwong82 avatar ronwong82 commented on July 24, 2024

By default. does it save date value for time picker?

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.