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

Offsets from logs not working #2243

Open
Falco20019 opened this issue Jan 24, 2025 · 4 comments
Open

Offsets from logs not working #2243

Falco20019 opened this issue Jan 24, 2025 · 4 comments

Comments

@Falco20019
Copy link

Describe the bug

If you open a log file with a different (non-UTC) timestamp, it's lost during usage.

ℹ Computer information

  • OS: Windows 10 Version 22H2 64 bit
  • Analogy Version: 7.2.0 .NET 8
  • Data Provider: Serilog

📝 Provide detailed reproduction steps (if any)

  1. Configure DateTimePattern with yyyy.MM.dd HH:mm:ss.fff zzz
  2. Import the logfile example1.txt as .clef using Serilog Parser
  3. See that the timestamps are messed up to have your own timezone instead of the one from the logs

✔️ Expected result

First entry should show 2016.10.12 04:46:58.055 +03:00

❌ Actual result

First entry shows 2016.10.12 04:46:58.055 +02:00 (or whatever your own timezone is)
It's not recalculated, it's just using UTC and messes the timezone

📷 Screenshots

Image
Image

@Falco20019
Copy link
Author

I assume it's converted from a DateTimeOffset into a DateTime somewhere which usually uses DateTimeKind.Unspecified and therefore shows the local time zone when formatted. At least that's a common issue I've seen a lot.

@LiorBanai
Copy link
Member

Correct. It is converted to DateTime. Working on a fix.

@LiorBanai
Copy link
Member

supports of DateTimeOffset at provider level was added and merge into main branch.
Next step: Adding at UI level. Some issue with sql filtering.
Still work in progress

@LiorBanai
Copy link
Member

Image

UI is updated correctly.
only existing issue is the sql filter fails on DataTimeOffset..

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