Closed Regentag closed 4 months ago
Thanks for your suggestion:
.utc
which can be defined to true
to switch to the UTC time when formatting dates.The Local_Image
is not available on GNAT 10 so it fails to build on Ubuntu 22.04 now. It's ok with GCC 12 and above.
When printing the time to the log, the current implementation uses the
Ada.Calendar.Formatting.Image
procedure. This causes the time to be recorded in UTC rather than the system's Local Time. It is hard-coded into theFormat
function in the/src/base/log/util-log-appenders.adb
file.I am using GNAT on Windows. System Time on my computer is UTC+9 (Seoul).
My Program:
Result:
I propose to modify the time output function to be displayed in system local time using the 'Ada.Calendar.Formating.Local_Image' procedure.