Voxel Summer Sale is now live! →

Exact local time for @order(created_at)

  • Solved
  • Posted 1 month ago

Hi guys,
@order(created_at).date_format(j. F Y G:i).time_diff(Europe/Zurich) or
@order(created_at).date_format(j. F Y G:i).time_diff(+02:00) in app events isn’t working.

It only ever shows me the UTC time for the order date.

@order(created_at).time_diff(Europe/Zurich).date_format(j. F Y G:i) or
@order(created_at).time_diff(+02:00).date_format(j. F Y G:i)

shows me “two hours”

The time format with @site(date).date_format(j. F Y G:i).time_diff(+02:00) or @site(date).date_format(j. F Y G:i).time_diff(Europe/Zurich) works perfectly.

Thank you