Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify timezone for dates in parse.com?

When updating or creating objects in my database, I need to specify the timezone. How can this be achieved in parse dot com?

Is there any global setting for this?

like image 505
Yvan Avatar asked Oct 21 '22 07:10

Yvan


1 Answers

If you're talking about the REST APIs, there is no local time zone support.

Parse.com uses UTC for all timestamps, so you'll have to locally convert the time between the time zone in question and UTC before passing it to its APIs or - the other way - after getting it from the API before presenting it to the user.

like image 82
Joachim Isaksson Avatar answered Oct 24 '22 00:10

Joachim Isaksson