Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Conversation

@danielbachhuber
Copy link
Member

It can be useful for determining the absolute time for the resource.

date_gmt was set for edit context only in
29c768b and
a12c23a

See #1675

It can be useful for determining the absolute time for the resource.

`date_gmt` was set for `edit` context only in
29c768b and
a12c23a
@danielbachhuber
Copy link
Member Author

@WP-API/amigos #reviewmerge

@rachelbaker Do you recall why you moved comment_date_gmt to edit context in 29c768b ?

@rachelbaker
Copy link
Member

@danielbachhuber the original philosophy I was trying to adhere to was is this property used for front-end public display? I have never seen a theme that displayed the post_date and separately also post_date_gmt.
That being said, I notice that we do expose modified_gmt for Posts....so we should be consistent one way or the other. I am 👍 with including the _gmt dates in the view context.

rachelbaker added a commit that referenced this pull request Oct 30, 2015
Expose `date_gmt` for `view` context of Posts and Comments
@rachelbaker rachelbaker merged commit de2e583 into develop Oct 30, 2015
@rachelbaker rachelbaker deleted the 1675-date-gmt-post-comment branch October 30, 2015 18:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants