diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 7af54c9a8d..ded19e23cf 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -3025,7 +3025,6 @@ phutil_register_library_map(array( '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 @@ phutil_register_library_map(array( '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 index 4559632989..1e0264fb93 100644 --- a/src/view/viewutils.php +++ b/src/view/viewutils.php @@ -38,7 +38,7 @@ function phabricator_time($epoch, $user) { return phabricator_format_local_time( $epoch, $user, - _phabricator_time_format($user)); + phabricator_time_format($user)); } function phabricator_datetime($epoch, $user) { @@ -47,10 +47,10 @@ function phabricator_datetime($epoch, $user) { $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(