Wrong Timezone
Problem
Hi, don't know if it's a Twilio issue or just a Node.js issue, but the timezone with which SMSs are sent is wrong. Both my mobile device and computer (where the server is spinning) have CET as a configured timezone. Though all SMSs I'm receiving are in UTC (i.e. 2 hours behind). Any tips on how to fix this?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Wrong Timezone
Hi Anatoliy, thanks for writing in. All dates returned by the api are in UTC regardless of where the messages are sent from. This is to enforce consistent dates across all users. Knowing that dates are in UTC we recommend you do the conversion to your time zone yourself in your code. Hope this helps!
Trust Score
2 verifications
- 1
Hi Anatoliy, thanks for writing in. All dates returned by the api are in UTC reg
Hi Anatoliy, thanks for writing in. All dates returned by the api are in UTC regardless of where the messages are sent from. This is to enforce consistent dates across all users. Knowing that dates are in UTC we recommend you do the conversion to your time zone yourself in your code. Hope this helps!
Validation
Resolved in twilio/twilio-node GitHub issue #235. Community reactions: 1 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep