diff --git a/contrib/index.md b/contrib/index.md index e3a8a81..6aa8695 100644 --- a/contrib/index.md +++ b/contrib/index.md @@ -156,10 +156,12 @@ const prettyDate = ( year = 'numeric', month = 'long', day = 'numeric', + timeZoneName = 'short' } = {}) => { - return `${date.toLocaleDateString(undefined, {weekday, year, month, day})} @ ${date.toLocaleTimeString()}`; + return `${date.toLocaleDateString(undefined, {weekday, year, month, day})} @ ${date.toLocaleTimeString(undefined, {timeZoneName})}`; }; +