Get $50+ off for Black Friday!

We've moved discussions to Discord

Time zones

Zach Nusbaum •
Hi-
I am wondering how to get the time to display in the user's chosen time zone.
Currently times are displayed in UTC no matter what:
Screen Shot 2020-02-20 at 7.16.41 AM.png 500 KB

Thanks!
Zach
Chris Oliver •
Thanks for this  Zach Nusbaum ! I just realized I have it recording the time zone but forgot to have it assign the time zone at the beginning of each request if a user is signed in.

I didn't notice it because I typically render times and dates with local_time (which is also installed with Jumpstart Pro).

Just updated the code for that. 👍
Zach Nusbaum •
Thank you, Chris! 
Ugurcan Kaya •
Chris Oliver   what would be the proper rescue method there? 

I am getting invalid timezone error for an account and it crashes the app.  

After adding rescue, I get 

Error during failsafe response: Invalid Timezone

which I guess comes from devise?
Chris Oliver •
Ugurcan Kaya  what's the invalid time zone set to in the db?
Chris Oliver •
Make an issue on gitlab with that so I can keep track of it.
Ugurcan Kaya •
done
Notifications
You’re not receiving notifications from this thread.