Skip to content

Commit

Permalink
Map: Document importance of day of week and timezone in date format
Browse files Browse the repository at this point in the history
  • Loading branch information
iandunn committed Nov 29, 2023
1 parent 777282a commit 40a8a43
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mu-plugins/blocks/google-map/src/utilities/date-time.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
/**
* Display a timestamp in the user's timezone and locale format.
*
* Note: The start time and day of the week are important pieces of information to include, since that helps
* attendees know at a glance if it's something they can attend. Otherwise they have to click to open it. The
* timezone is also important to make it clear that we're showing the user's timezone, not the venue's.
*
* @see https://make.wordpress.org/community/2017/03/23/showing-upcoming-local-events-in-wp-admin/#comment-23297
* @see https://make.wordpress.org/community/2017/03/23/showing-upcoming-local-events-in-wp-admin/#comment-23307
*
* @param {number} timestamp
*
* @return {string}
Expand Down

0 comments on commit 40a8a43

Please sign in to comment.