I'm facing challenges in implementing a cron job for our daily check-in feature. Our goal is to send a push notification alarm daily to remind users to check in if they haven't already. The timing of these alarms should follow each user's local time zone. For example, Korean users should receive the push notification at 5 PM Korean time, while American users should receive it at 5 PM in their local (American) time zone.
How can I achieve this??
I've already implemented the business logic. It checks whether a user is targeted or not and sends the push alarm accordingly.
Is it possible to control the cron job time based on the user's time zone, or should I consider modifications at the user business logic level?
As a beginner developer,
I apologize if I didn't provide enough information in my question.
Please leave your comments, and I'll try to rewrite it.
Asked by beeeeeeginer
(31 rep)
Apr 29, 2024, 06:04 AM
Last activity: Apr 29, 2024, 08:58 AM
Last activity: Apr 29, 2024, 08:58 AM