LogViewPlus Support

Convert date time with timezone specifier

https://www.logviewplus.com/forum/Topic2233.aspx

By Hennisch - 10 Sep 2024

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.
By LogViewPlus Support - 10 Sep 2024

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
By Hennisch - 11 Sep 2024

Hi, 
worked for now. JUst cant use the offset that way but better than nothing. BigGrin

Can configure that for now in the tool itself.
Thx!
By LogViewPlus Support - 12 Sep 2024

Glad that helped.  Thanks for letting me know!

Toby
By Hennisch - 5 Nov 2025

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.
By LogViewPlus Support - 5 Nov 2025

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