soderlind / acf-field-date-time-picker

Date and Time Picker field for Advanced Custom Fields v3 and v4
GNU General Public License v2.0
65 stars 27 forks source link

Year and month reversed using timestamps #94

Open squarestar opened 9 years ago

squarestar commented 9 years ago

When changing the input format to d/m/y, if I set the field to retrieve the date as a timestamp, the year and month are reversed.

yratof commented 8 years ago

@squarestar Looking into the code I found this: //if start with dd/ or d/ (not supported by strtotime()). Going deeper into this, if you set the format to m/d/y the displayed format on the ACF field itself ignores this formatting and shows the wordpress formatting.