iansinnott / jstz

🌐Timezone detection for JavaScript
Other
175 stars 33 forks source link

rails example in readme needs a symbol not a string to access the cookie #15

Closed t56k closed 6 years ago

t56k commented 6 years ago

Using a string in cookies['browser_time_zone'] returns nothing. Switching to a symbol like cookies[:browser_time_zone] retrieves the cookie value.

iansinnott commented 6 years ago

Awesome, thanks @cd-rum. This is really helpful.