Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15336407
D11187.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11187.diff
View Options
diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -3025,7 +3025,6 @@
'UserWhoAmIConduitAPIMethod' => 'applications/people/conduit/UserWhoAmIConduitAPIMethod.php',
),
'function' => array(
- '_phabricator_time_format' => 'view/viewutils.php',
'celerity_generate_unique_node_id' => 'applications/celerity/api.php',
'celerity_get_resource_uri' => 'applications/celerity/api.php',
'implode_selected_handle_links' => 'applications/phid/handle/view/render.php',
@@ -3037,6 +3036,7 @@
'phabricator_on_relative_date' => 'view/viewutils.php',
'phabricator_relative_date' => 'view/viewutils.php',
'phabricator_time' => 'view/viewutils.php',
+ 'phabricator_time_format' => 'view/viewutils.php',
'phid_get_subtype' => 'applications/phid/utils.php',
'phid_get_type' => 'applications/phid/utils.php',
'phid_group_by_type' => 'applications/phid/utils.php',
diff --git a/src/view/viewutils.php b/src/view/viewutils.php
--- a/src/view/viewutils.php
+++ b/src/view/viewutils.php
@@ -38,7 +38,7 @@
return phabricator_format_local_time(
$epoch,
$user,
- _phabricator_time_format($user));
+ phabricator_time_format($user));
}
function phabricator_datetime($epoch, $user) {
@@ -47,10 +47,10 @@
$user,
pht('%s, %s',
_phutil_date_format($epoch),
- _phabricator_time_format($user)));
+ phabricator_time_format($user)));
}
-function _phabricator_time_format($user) {
+function phabricator_time_format($user) {
$prefs = $user->loadPreferences();
$pref = $prefs->getPreference(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 9, 6:47 PM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7390679
Default Alt Text
D11187.diff (1 KB)
Attached To
Mode
D11187: Rename the `_phabricator_time_format` function for consistency
Attached
Detach File
Event Timeline
Log In to Comment