-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change the log time from UTC to Local Time #48
Labels
Comments
stcarrez
added a commit
that referenced
this issue
Jan 28, 2024
- by default, print the date in local time - add new configuration option '.utc' to format the date in local time - add Format function to format a date according to the appender configuration - update documentation
stcarrez
added a commit
that referenced
this issue
Jan 28, 2024
Thanks for your suggestion:
|
The |
stcarrez
added a commit
that referenced
this issue
Feb 4, 2024
stcarrez
added a commit
that referenced
this issue
Feb 4, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: