-
Notifications
You must be signed in to change notification settings - Fork 42
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
FormatBlock.Date.ISO8601 does not take offset into account #573
Comments
Noticed two things:
|
A better solution perhaps would be to add the zone offset at the end of the string according to ISO8601-standards 🤔 |
Can you clarify which log formatting you are using? |
Also, are you logging on JVM, JS, or Native? |
Using |
It should be, but the implementations are different. |
Correct me if I'm wrong here, but the problem isn't Perfolation; it's that I'm hard-coding |
my proposed solution is just to replace "Z" in |
@megri please let me know if this solution is acceptable to you. |
@darkfrog26 I wasn't paying attention to this. I'm sorry. Fixing the output to use the proper timezone would definitely be preferable.
That would be great. Note I tried reading up on how to properly format this but my reference actually doesn't seem to acknowledge this format. It's definitely better than hard-coding a Z though. As an aside I tried using |
This works though:
|
Hmm, I'll have to take a look and do some testing. Feel free to create a PR here: https://github.com/outr/perfolation if you're interested in helping fix it. |
I just noticed for the first time that my friend outputs the incorrect timestamp.
I'm in UTC+02:00 so at 12:00 UTC my local time is 14:00, and yet this formatter outputs "14:00Z". Basically the offset is not deducted from the timestamp before printing.
The text was updated successfully, but these errors were encountered: