Comments (14)
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.
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.
Ok, I'll look into it. Thank you for reporting this issue.
from acf-field-date-time-picker.
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.
@mikespainhower's 'default_value' solution fixed it for me as well. (Thanks!)
from acf-field-date-time-picker.
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.
@mikespainhower fix is working for me too.
from acf-field-date-time-picker.
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.
@ramathorn89 Fix is still working and I'm not experiencing your morning/afternoon issue.
from acf-field-date-time-picker.
@ramathorn89 what @MrJustin said
from acf-field-date-time-picker.
@ramathorn89 what @MrJustin said
from acf-field-date-time-picker.
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.
Please see #19 (comment)
from acf-field-date-time-picker.
By default. does it save date value for time picker?
from acf-field-date-time-picker.
Related Issues (20)
- Date only request HOT 1
- readonly Setting is Missing.
- After acf Update class acf_field_date_time_picker is declared more than once HOT 15
- Cannot save a time output that does not show a date HOT 1
- EOL ACF PRO 5.0 support (?) HOT 2
- Re-adding support for ACF PRO HOT 4
- Limit timespan
- Setting a default time using the time only option in ACF HOT 4
- "English (Canada)" WordPress Regional Setting Interpreted as Catala
- Php error (uncaught error calling undefined function) HOT 1
- UI time picker doesn't run? HOT 2
- Save and Get in ISO 8601 Format HOT 1
- Feature request: Bind the "Now" button to the site's timezone setting
- Is this maintained?
- Can't include in plugin HOT 3
- Can't order posts correctly, because saving as timestamp doesn't work!
- Year and month reversed using timestamps HOT 1
- Saving as timestamp doesn't work HOT 2
- Time Picker doesn't show on Front End HOT 1
- How i call the picker in other admin inputs? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acf-field-date-time-picker.