Comments (9)
Any help on this?
from acf-field-date-time-picker.
I need a bit more information please.
- I guess you're testing 2.0.11 and not 2.0.1.1
- Have you checked for javascript error?
- I assume you're using WP 3.6.x?
- What kind of server are you using (LAMP, MAMP ..) ?
from acf-field-date-time-picker.
I guess you're testing 2.0.11 and not 2.0.1.1 — Yep, sorry.
Have you checked for javascript error? — No JS errors on the add post pages
I assume you're using WP 3.6.x? — Using 3.6
What kind of server are you using (LAMP, MAMP ..) ? — this is on the live, and using MediaTemple with Apache
from acf-field-date-time-picker.
from acf-field-date-time-picker.
Two screenshots attached above. Top image is how it looks before I select a date, then then bottom image is how it looks once two dates are selected. When I clicked 'Update' or 'Save', it simply returns the fields back to the top image and no information is saved.
from acf-field-date-time-picker.
Doest it work if you change the date and time format to?: dd.mm.yy hh:mm
from acf-field-date-time-picker.
It definitely, does. Nice. So it's to do with the date format. So either, it need to be fixed backend, or I could somehow turn dd.mm.yy into D dd MM on the front.
from acf-field-date-time-picker.
The "problem" is strtotime, it's picky .. meaning if it doesn't understand the date format it'll return nothing. I would love to use DateTime::createFromFormat, but it's PHP >= 5.3.0 (WordPress is PHP >= 5.2.4)
I suggest that you use dd.mm.yy where you set the date, and use D dd MM on the front. In the latest version you can set "Get field as timestamp" and if you're running PHP >= 5.3, use something like:
$datetime = DateTime::createFromFormat('U', get_field($field_name));
echo $datetime->format('D dd MM');
You can read more about get_field at http://www.advancedcustomfields.com/resources/functions/get_field/
from acf-field-date-time-picker.
Many thanks – this makes perfect sense.
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.