Skip to content

Commit

Permalink
Merge pull request #79 from Automattic/try/add-timezones
Browse files Browse the repository at this point in the history
Add in utc offset to modal & list view.
  • Loading branch information
tellyworth committed Mar 12, 2020
2 parents 9563d85 + 03ce2ba commit f08a128
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/frontend/calendar/grid.js
Expand Up @@ -49,7 +49,7 @@ function CalendarGrid( { month, year } ) {
<p>
<abbr title={ gmdate( 'c', activeEvent.datetime ) }>
{ format(
'l, F j, Y, g:i a',
'l, F j, Y, g:i a (\\U\\T\\CP)',
activeEvent.datetime
) }
</abbr>
Expand Down
7 changes: 6 additions & 1 deletion src/frontend/list/list-item.js
Expand Up @@ -43,7 +43,12 @@ function ListItem( { date, events } ) {
}` }
key={ event.instance_id }
>
<div>{ format( 'g:i a ', event.datetime ) }</div>
<div>
{ format( 'g:i a ', event.datetime ) }
<div className="wporg-meeting-calendar__list-event-tz">
{ format( '(\\U\\T\\CP)', date ) }
</div>
</div>
<div className="wporg-meeting-calendar__list-event-details">
{ event.team && (
<a
Expand Down
5 changes: 5 additions & 0 deletions src/frontend/styles.css
Expand Up @@ -155,6 +155,11 @@
font-size: 16px;
}

.wporg-meeting-calendar__list-event-tz {
font-size: 12px;
color: #999;
}

.wporg-meeting-calendar__list-event-team {
font-size: 14px;
padding: 2px 6px;
Expand Down

0 comments on commit f08a128

Please sign in to comment.