I think I found the error in the behavior.
I think it is maybe because PtokaX is written in C and then the lua scripts are called through it. Since, the strftime defines %X
as
writes localized time representation (locale dependent)
This causes the time output to be in 12-hour format, instead of 24 hour. I'll still have to test it after 12 PM today.
P.S.
I don't know how to check the locale
date format, but I'm assuming this is the only valid cause for this behavior.
I switched back to using os.date( "%Y-%m-%d %X" )
in my scripts.