[wp-trac] [WordPress Trac] #39222: Add JavaScript date helpers

WordPress Trac noreply at wordpress.org
Sat Dec 10 09:51:36 UTC 2016


#39222: Add JavaScript date helpers
-----------------------------+-------------------------
 Reporter:  rmccue           |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  4.8
Component:  Date/Time        |    Version:  4.7
 Severity:  normal           |   Keywords:  needs-patch
  Focuses:  rest-api         |
-----------------------------+-------------------------
 With the REST API, it's now possible to receive raw dates (ISO8601 format)
 on the frontend, without having the site's date preferences applied.

 Formatting dates is a pain in JavaScript, and having it match the site
 preferences and translations is a pain too. We should introduce a helper
 library to simplify this, based on our PHP `date_i18n()` and
 `human_time_diff()` functions.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39222>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list