Hello,
I've noticed that the date format used in the auction module is hard coded in the module. If you change the format option on the site, it can't be used in the expiry field.
It's on line 122, but when I use the format_date( ..., 'small') then it inserts the - and it seems to be incompatible with setting the end date.
Fossie
Comments
Comment #1
Garrett Albright commentedThe trick is that the date has to be something which will be recognized by PHP's strtotime() function when posted, which means it should be clearly formatted and precise; it can't be something arbitrary. Otherwise, when the node is edited, even if the expiry field itself isn't changed, PHP's strtotime() may alter the expiry timestamp to something undesired.
As I'm looking at the code, though, I'm realizing that the hard-coded date format does allow for ambiguity between which digit is the month and which is the day. I'll look into picking a clearer format for the default.