Skip to content

Export server-side date format for use in JS by Moment.js #2013

@westonruter

Description

@westonruter

See #1992 (comment)

It'd be nice to use _wpDateSettings.formats.date but PHP and moment.js tokens don't match.

So part of this would be a JS finction to convert the PHP date() format into the Moment.js format.

This is needed by both the Latest Posts block and the Latest Comments block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions