Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Add a timezone to the contrib meeting time.
Browse files Browse the repository at this point in the history
  • Loading branch information
reynoldsalec committed Apr 4, 2024
1 parent 2afb689 commit 03c5697
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contrib/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,13 @@ const prettyDate = (
year = 'numeric',
month = 'long',
day = 'numeric',
timeZoneName = 'short'
} = {}) => {
return `${date.toLocaleDateString(undefined, {weekday, year, month, day})} @ ${date.toLocaleTimeString()}`;
const options = { weekday, year, month, day, timeZoneName };
return `${date.toLocaleDateString(undefined, options)} @ ${date.toLocaleTimeString(undefined, options)}`;
};


</script>

<style>
Expand Down

0 comments on commit 03c5697

Please sign in to comment.