lpatmo / cb

UPDATE: the newer version of this repo is at github.com/codebuddiesdotorg/codebuddies

Home Page:http://codebuddies.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dates/times disappear on Safari 8.0.5

lpatmo opened this issue · comments

commented

Thanks @dbgrandi for finding this bug!

I figured out the culprit. It's your formattedHangoutDate function in new_post_title.js. Safari doesn't seem to understand Intl.DateTimeFormat().resolvedOptions().timeZone. It throws a ReferenceError:

ReferenceError: Can't find variable: Intl.

Chrome understands it and Firefox just gives you undefined. If you want to see what I'm talking about, run these commands in the browser consoles:

new Date();
Intl.DateTimeFormat().resolvedOptions().timeZone;

Just came across this comment in the moment-timezone repo:
moment/moment-timezone#138 (comment)

Intl.DateTimeFormat().resolvedOptions().timeZone seems to only work in the latest Chrome and Opera (at least in my Mac versions, haven't checked Windows).

commented

Resolved by @wuworkshop! Fourth person to make a pull request to /cb!

firework1