Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UTC vs local timestamp variances in tools

See original GitHub issue

EvtxECmd version # I am running EvtxCmd version

Describe the bug If I run EvtxCmd at 12:00 without specifying an output file name, the generated file has a name such as 20220615100000_EvtxECmd_Output.csv. If I run it with others EZTools in a powershell loop, all others default output file names are like 20220615120101_LECmd_Output.csv. @ro-olivier identified the same behavior on its end.

To Reproduce The exact command executed is .\EvtxECmd.exe -d .\C\Windows\System32\winevt\Logs\ --csv .\output\EventLogs with a fresh install of all EZTools.

Expected behavior I expect the timestamp to be 20220615100000_EvtxECmd_Output.csv

Additional context My timezone is GMT + 2 / UTC+1

Possible explanation I suspect there are some time conversion between UTC and local timezone that somehow affected also the file name ?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

EricZimmermancommented, Jun 15, 2022

this is done

EricZimmermancommented, Jun 15, 2022

yea thats my bad. should have all been UTC from the get go. if you notice any others please let me know

Read more comments on GitHub >

github_iconTop Results From Across the Web

Should I store UTC timestamps or localtime for shifts
So always better to use a time zone when you know it. To answer the Question: You need both “local” and “zoned” types...
Read more >
Do you set your gear to UTC timezone or the local zone of ...
It depends on your environment. Is all of your equipment/users located in the same timezone? It's fine to use local time. Span multiple...
Read more >
Local time versus UTC time
UTC is the best choice for timestamping, as Windows today offers functionality to make UTC available to programs together with local time which...
Read more >
Should future time be stored in UTC or local time?
Clearly in most cases time should be store in UTC. And in all cases a datetime that records a past event should be...
Read more >
The plain timestamp and timestamptz data types [YSQL]
A timestamptz value represents an absolute time. Such a value can therefore be deterministically expressed as the local time in the UTC timezone—or,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found