N
Novu3mo ago
voidx

Timezone bug in datetime formatting

Hi, I'm using a date format filter in template: %d/%m/%Y %I:%M %p. When I provide an input payload such as 2025-06-30T11:30:00+01:00, in the final output I get 30/06/2025 10:30 AM which is incorrect as its modifying the local time I need to display.
6 Replies
Pawan Jain
Pawan Jain3mo ago
@voidx I am trying to understand the issue. It means the date format liquid js helper always formats the time in UTC timezone
voidx
voidxOP3mo ago
Yes, seems like it. Therefore the output ends up showing in UTC datetime to the user. Hi @Pawan Jain, will this be fixed?
Pawan Jain
Pawan Jain3mo ago
I have shared the bug with team, will keep you updated on the fix
voidx
voidxOP2mo ago
Hi @Pawan Jain, any update from the team on this?
Pawan Jain
Pawan Jain2mo ago
@voidx

team has suggestion to remove timezone from the value to avoid conversion to UTC

2025-06-30T11:30:00+01:00 should be 2025-06-30T11:30:00
voidx
voidxOP2mo ago
@Pawan Jain Alright, I can work with that

Did you find this page helpful?