Skip to content

Better handling of custom date/time formats#73

Open
BigWhale wants to merge 3 commits into
soderlind:mainfrom
BigWhale:master
Open

Better handling of custom date/time formats#73
BigWhale wants to merge 3 commits into
soderlind:mainfrom
BigWhale:master

Conversation

@BigWhale
Copy link
Copy Markdown

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.

… can be used for displaying date/time in the selector.
@soderlind
Copy link
Copy Markdown
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants