adrianhajdin / healthcare

Build a healthcare platform that streamlines patient registration, appointment scheduling, and medical records, and learn to implement complex forms and SMS notifications.
https://jsmastery.pro
1.81k stars 432 forks source link

fix: update formatDateTime to use client timezone before sending sms #28

Closed billy93 closed 1 month ago

billy93 commented 1 month ago

Fix the timezone before sending the SMS. The timezone is different depending on the server, so we need to send the timezone from the client before sending the SMS. This way, the client will receive the SMS with the correct time.

Error reported : https://discord.com/channels/710138849350647871/1264306368471629896