Join Discord
Powered by
Time zone detection
# 🤝help
a
aloof-shoe-51097
08/22/2023, 6:48 PM
Can you tell me if it is possible to detect the current timezone of a user? Automatically, without having to ask him.
aloof-shoe-51097
08/22/2023, 7:28 PM
const currentTime = luxon.DateTime.now(); user.userTimezone = currentTime.zoneName;
aloof-shoe-51097
08/22/2023, 7:28 PM
It works only in Webchat integration.
aloof-shoe-51097
08/22/2023, 7:30 PM
In Telegram / WhatsApp it will always be UTC 😦
f
famous-zoo-73118
08/22/2023, 7:47 PM
It's not possible because bots/integrations run on the server side so they don't have access to the user's environment.
a
aloof-shoe-51097
08/22/2023, 7:58 PM
Ok, will do it using a webhook intergration.
35
Views
Previous
Next