You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New feature request or a bug in current behaviour!
I found that KnpTimeBundle does not show the time correctly with the time zone and AGO filter.
Without time zone and with UTF time zone it shows correctly.
Example with time zones (right time): <div>{{ item.updatedAt | date('Y-m-d H:i:s', new DateTimeZone('Europe/London')) }}</div>
Example with UTC and AGO filter (right time): <div>{{ item.updatedAt | date('Y-m-d H:i:s', new DateTimeZone('UTC')) | ago }}</div>
Error with TimeZone and AGO filter (wrong time): <div>{{ item.updatedAt | date('Y-m-d H:i:s', new DateTimeZone('Europe/Germany')) | ago }}</div>
Please add functionality to KnpTimeBundle, that allows for right time in cases when DateTimeZone is not UTC.
Thanks
The text was updated successfully, but these errors were encountered:
Rikijs
changed the title
I found that KnpTimeBundle does not show the time correctly with the time zone.KnpTimeBundle does not show the time correctly with the time zone (when it is not UTC).
Jan 10, 2025
New feature request or a bug in current behaviour!
I found that
KnpTimeBundle
does not show the time correctly with the time zone and AGO filter.Without
time zone
and withUTF time zone
it shows correctly.Example with time zones (right time):
<div>{{ item.updatedAt | date('Y-m-d H:i:s', new DateTimeZone('Europe/London')) }}</div>
Example with UTC and AGO filter (right time):
<div>{{ item.updatedAt | date('Y-m-d H:i:s', new DateTimeZone('UTC')) | ago }}</div>
Error with TimeZone and AGO filter (wrong time):
<div>{{ item.updatedAt | date('Y-m-d H:i:s', new DateTimeZone('Europe/Germany')) | ago }}</div>
Please add functionality to
KnpTimeBundle
, that allows for right time in cases whenDateTimeZone
is notUTC
.Thanks
The text was updated successfully, but these errors were encountered: