From 24a025becbf6780389d24b0a8bccb4ad68317c45 Mon Sep 17 00:00:00 2001 From: Andrew Gallagher Date: Wed, 27 Jun 2012 19:07:12 -0700 Subject: [PATCH] Revert "Mark date and time format translatable" This reverts commit e3eb8d55c5fe2b566bf0c6418f83bb199a6f657c. --- src/view/viewutils.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/view/viewutils.php b/src/view/viewutils.php index 880d11653d..c1e63e700b 100644 --- a/src/view/viewutils.php +++ b/src/view/viewutils.php @@ -54,21 +54,21 @@ function phabricator_time($epoch, $user) { return phabricator_format_local_time( $epoch, $user, - pht('g:i A')); + 'g:i A'); } -function phabricator_datetime($epoch, $user) { + function phabricator_datetime($epoch, $user) { return phabricator_format_local_time( $epoch, $user, - pht('%s, g:i A', _phabricator_date_format($epoch))); + _phabricator_date_format($epoch).', g:i A'); } function _phabricator_date_format($epoch) { - $format = pht('M j Y'); + $format = 'M j Y'; $now = time(); if ($epoch <= $now && $epoch > $now - 30 * 24 * 60 * 60) { - $format = pht('D, M j'); + $format = 'D, M j'; } return $format; } @@ -115,7 +115,7 @@ function phabricator_format_local_time($epoch, $user, $format) { $date->setTimeZone($zone); - return PhutilTranslator::getInstance()->translateDate($format, $date); + return $date->format($format); } function phabricator_format_relative_time($duration) {