Convert date time with timezone specifier

Posted on Sep 10, 2024 at 10:49 AM
Hi 
I have an issue converting the following timestamp in Logview
2024-09-04 22:50:45.796 Z-0700

I have tried multiple formats yet but so far have not found a solution to properly convert it with the offset and the Z letter in place. Any help and recommendation is appreciated.
Posted on Sep 10, 2024 at 6:46 PM
Hi Hennisch,

Thanks for bringing this issue to our attention.

I have not seen that time zone format before and it appears that it is not possible to parse it in the current version of LogViewPlus.  I will take a look and try to add support in the next LogViewPlus release.

In the meantime, I would recommend ignoring the timezone and parsing your log entry with something like:
%d{yyyy-MM-dd %H:mm:ss.fff} %s %m%n

Hope that helps,

Toby
Posted on Sep 11, 2024 at 7:52 PM
Hi, 
worked for now. JUst cant use the offset that way but better than nothing. :D

Can configure that for now in the tool itself.
Thx!
Posted on Sep 12, 2024 at 7:24 AM
Glad that helped.  Thanks for letting me know!

Toby
Posted on Nov 5, 2025 at 3:21 PM
Hi Toby,
I have checked that again. Based on MS documentation, I should be able to parse the below mentioned timestamp like this:
yyyy-MM-dd HH:mm:ss.fff 'Z'zzzz

Unfortunately LVP doesn't like that one. This is what I understood from the documentation of Microsoft on using string literals in date time formats.
Posted on Nov 5, 2025 at 8:33 PM
Thanks for highlighting this issue Hennisch.

I have investigated the issue and can confirm it is a bug in the current version of LogViewPlus.  We have now implemented a fix for the issue, so it will be resolved in the next release.

Thanks again,

Toby

This topic is closed and cannot receive new replies.