If a user sets a reminder notification time exactly at 8 AM
, he should get the notification exactly at 8 AM
even after he moved to a different timezone
.
I mean if he moved to any other country with different timezone even after that he should get the notification exactly at 8 AM
on the morning of that country.
To send notifications, I'm using CRON
which is running in UTC timezon
e.
Consider this example, user's reminder time is 8 AM in IST (+5:30)
, I'm storing 2:30
in UTC into the database. But what if he moved to EDT (-4:00)
timezone area? But also I have a huge amount of data of the user.
Please suggest the solution considering that I have to perform that operation using PHP and the database is MySQL
.