diff --git a/contrib/index.md b/contrib/index.md index e3a8a81..c389f14 100644 --- a/contrib/index.md +++ b/contrib/index.md @@ -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)}`; }; +