Add Temporal::utc() shorthand to Temporal::convert()

This commit is contained in:
Hypolite Petovan 2018-01-26 07:29:32 -05:00
parent ca8209a2ce
commit 35d06bd9eb
22 changed files with 173 additions and 128 deletions

View file

@ -301,7 +301,7 @@ class Post extends BaseObject
$comment = $this->getCommentBox($indent);
if (strcmp(Temporal::convert($item['created']), Temporal::convert('now - 12 hours')) > 0) {
if (strcmp(Temporal::utc($item['created']), Temporal::utc('now - 12 hours')) > 0) {
$shiny = 'shiny';
}