0

I have a js script in cloud code. And I need to send a notification to my user at some hour of the day.

Therefore I'd like to know : 1. what is the timezone of cloud code server ? 2. how do I use timeZone property of installation in the JS SDK.

Ambroise Collon
  • 3,839
  • 3
  • 18
  • 37

1 Answers1

0

Everything in the cloud is GMT. Best approach is to keep GMT everywhere, except on the UI. Notification is a sort of UI. After a user is created, work out the GMT time that you wish to push, and use that.

Here's a decent article on timezone conversion.

Community
  • 1
  • 1
danh
  • 62,181
  • 10
  • 95
  • 136