Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15392368
D16290.id39180.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D16290.id39180.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -362,7 +362,7 @@
'rsrc/js/application/aphlict/behavior-aphlict-status.js' => 'ea681761',
'rsrc/js/application/aphlict/behavior-desktop-notifications-control.js' => 'edd1ba66',
'rsrc/js/application/auth/behavior-persona-login.js' => '9414ff18',
- 'rsrc/js/application/calendar/behavior-day-view.js' => '5c46cff2',
+ 'rsrc/js/application/calendar/behavior-day-view.js' => '1a5bb063',
'rsrc/js/application/calendar/behavior-event-all-day.js' => '38dcf3c8',
'rsrc/js/application/calendar/behavior-recurring-edit.js' => '5f1c4d5f',
'rsrc/js/application/config/behavior-reorder-fields.js' => 'b6993408',
@@ -603,7 +603,7 @@
'javelin-behavior-dashboard-move-panels' => '019f36c4',
'javelin-behavior-dashboard-query-panel-select' => '453c5375',
'javelin-behavior-dashboard-tab-panel' => 'd4eecc63',
- 'javelin-behavior-day-view' => '5c46cff2',
+ 'javelin-behavior-day-view' => '1a5bb063',
'javelin-behavior-desktop-notifications-control' => 'edd1ba66',
'javelin-behavior-detect-timezone' => '4c193c96',
'javelin-behavior-device' => 'bb1dd507',
diff --git a/src/view/phui/calendar/PHUICalendarDayView.php b/src/view/phui/calendar/PHUICalendarDayView.php
--- a/src/view/phui/calendar/PHUICalendarDayView.php
+++ b/src/view/phui/calendar/PHUICalendarDayView.php
@@ -61,7 +61,7 @@
foreach ($hours as $hour) {
$js_hours[] = array(
'hour' => $hour->format('G'),
- 'hour_meridian' => $hour->format('g A'),
+ 'displayTime' => phabricator_time($hour->format('U'), $viewer),
);
}
diff --git a/webroot/rsrc/js/application/calendar/behavior-day-view.js b/webroot/rsrc/js/application/calendar/behavior-day-view.js
--- a/webroot/rsrc/js/application/calendar/behavior-day-view.js
+++ b/webroot/rsrc/js/application/calendar/behavior-day-view.js
@@ -169,13 +169,13 @@
var cell_time = JX.$N(
'td',
{className: 'phui-calendar-day-hour'},
- hours[i]['hour_meridian']);
+ hours[i].displayTime);
var cell_event = JX.$N(
'td',
{
meta: {
- time: hours[i]['hour_meridian']
+ time: hours[i].displayTime
},
className: 'phui-calendar-day-events',
sigil: 'phui-calendar-day-event-cell'
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 16, 2:48 PM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7705823
Default Alt Text
D16290.id39180.diff (2 KB)
Attached To
Mode
D16290: Respect 12 hour vs 24 hour time formats in Calendar day views
Attached
Detach File
Event Timeline
Log In to Comment