Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong time formatting #313

Open
luigixx73 opened this issue Aug 26, 2023 · 5 comments
Open

Wrong time formatting #313

luigixx73 opened this issue Aug 26, 2023 · 5 comments

Comments

@luigixx73
Copy link

if time is 2023-08-26T13:51:28+02:00 using format: datetime shows local date time but UTC ( 26 de agosto de 2023, 13:51)
It is not adjusting time zone.

@ildar170975
Copy link

ildar170975 commented Aug 31, 2023

It is not adjusting time zone.

Why it should?
This is a local time: "13:51:28".
This is UTC time: "11:51:28"

@luigixx73
Copy link
Author

luigixx73 commented Sep 1, 2023

Nope, UTC Time is 13:51:28 , my local time is +2.00 hours.
New example just now : 2023-09-01T14:09:43+02:00
It shows 1 de septiembre de 2023, 14:09 but local time is 16:09

@ildar170975
Copy link

Check this:
image
Now my local time is 17:59.

@luigixx73
Copy link
Author

I know where the issue is.
My payload is not giving the date in ISO 8601 format, thus the date is interpreted as locale
So I will convert 2023-09-01T14:09:43+02:00 to 2023-09-01T14:09:43.000Z which is ISO 8601 UTC time
Thanks anyway for your kind help

@ildar170975
Copy link

In this notation 2023-09-01T14:09:43+02:00 it is considered that 14:09:43 is a local time, and +02:00 gives you an offset.
So the UTC time is 2023-09-01T12:09:43+00:00.
Seems that the timestamp value is not properly composed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants