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

Better handling of custom date/time formats #73

Open BigWhale opened 9 years ago

BigWhale commented 9 years ago

Previously date/time formats were limited to what PHP's strtotime() supports, which is quite limited. I changed this and used DateTime::createFromFormat() which is more versatile.

soderlind commented 9 years ago

I'd prefer using DateTime::createFromFormat(), but I'm a bit ambivalent about implementing it. DateTime::createFromFormat() is PHP 5 >= 5.3.0, but WordPress is PHP >= 5.2.4.