#1
Posted 03 May 2012 - 05:20 AM
Basically my custom date field is being wiped when I resave the page.
So on first adding the date and saving all is well, or if the date is added last thing before clicking save then no problems but otherwise the datefield just empties.
I am also using the datepicker (not sure if this has any bearing on it)
#2
Posted 03 May 2012 - 05:31 AM
As for the date picker populating the format Y-m-d, it does that because javascript (jQuery) and PHP don't use the same date format strings, so we have to use an ISO-standard date format for something that is automatically populated from a date picker.
You are probably using the d-m-Y format in your date field.
/Jasper
#4
Posted 03 May 2012 - 10:58 AM
http://processwire.c...tfielddatetime/
I'll be committing this to the core soon.
#7
Posted 03 May 2012 - 12:23 PM
Also, you'll be glad to know I've got an update just about ready that should prevent this particular browser cache issue that comes up regularly. Basically, the admin template will append the module version numbers to the CSS and JS files, i.e. "module.js?v=102", hopefully communicating to the browser that something has changed.
#8
Posted 03 May 2012 - 12:29 PM
#11
Posted 04 May 2012 - 12:41 PM
Thanks for the replies, think I may have just misunderstood, when I select with the datepicker it displays YYYY but when saved it reverts to desired input.
With the new datepicker, the only time you should see the YYYY-MM-DD input is if that what you have selected as your input format. If you have selected some other input format, then the datepicker should use only the format you selected. This is one of the main differences between the new datepicker and the old one. The behavior you are describing sounds to me like you may still have the old datepicker. The new one has been stable for me all week, so I will go ahead and commit the new one to the source this weekend or early next week.
#13
Posted 13 June 2012 - 02:10 AM
Ryan, just to make sure: did you commit this to the core so that your datetime patch is no longer require in current PW versions?
Yep, the new datefield is on the core already.
#14
Posted 13 June 2012 - 03:15 AM
In the "live version" on the server, I can't select "unix timestamp" as an output format in datetime fields. On my local dev server (with patch applied) I can. Live version is today's github snapshot. Is this related to that or am I missing something here?
#15
Posted 13 June 2012 - 03:56 AM
#17
Posted 13 June 2012 - 06:50 AM
https://github.com/r...time.module#L76
"Timestamp" was in the patch Ryan provided as download.
@somartist | modules created | support me, flattr my work flattr.com
#18
Posted 13 June 2012 - 08:15 AM
#19
Posted 13 June 2012 - 12:31 PM
Also tagged with one or more of these keywords: datefield, bug
Community Support →
General Support →
Multiple Image Bug (When using API) [RESOLVED]Started by Hani, 21 Jan 2013 |
|
|
||
Community Support →
Getting Started →
Get pages by datefieldStarted by Sanyaissues, 24 Nov 2012 |
|
|
||
Community Support →
General Support →
Bug in ProcessPageType (dev branch)Started by teppo, 15 Nov 2012 |
|
|
||
Community Support →
General Support →
Admin Data Table and rows starting with numbers cause problemsStarted by teppo, 22 May 2012 |
|
|
||
bug
Community Support →
General Support →
Drag 'n drop uploading generates duplicate filesStarted by apeisa, 08 May 2012 |
|
|
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users













