View Issue Details

IDProjectCategoryView StatusLast Update
0001375bareos-coredirectorpublic2023-08-29 13:28
ReporterFaabIBA Assigned Tobruno-at-bareos  
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSSLESOS Version15.2
Product Version20.0.2 
Summary0001375: Backup summary does not use timestamp format
DescriptionThe backup summary shows all timestamps (start time, end time,...) in the default "%d-%b-%Y %H:%M" format, even if the "Timestamp Format" variable is defined.
I was expecting the timestamps to use the "Timestamp Format" defined in the message resource.
Steps To Reproduce- Add the option "Timestamp Format (Dir->Messages)" to the "Standard" messages resource:
# cat /etc/bareos/bareos-dir.d/messages/Standard.conf
Messages {
  Name = Standard
  ...
  timestampformat = "%Y-%m-%d %H:%M:%S"
}

- Restart bareos-dir daemon.
- Run a backup job.
- Check the format of the timestamps in the message.
TagsNo tags attached.

Activities

bruno-at-bareos

bruno-at-bareos

2023-07-20 09:46

manager   ~0005234

Did you try to also setup the logtimestampformat (daemon resource) to the desired format?
bruno-at-bareos

bruno-at-bareos

2023-07-20 10:03

manager   ~0005235

btw the code used to display those information doesn't use those parameters
FaabIBA

FaabIBA

2023-08-08 11:51

reporter   ~0005317

Last edited: 2023-08-08 11:53

Yes, the "Log Timestamp Format" parameter is defined to the same format in the Director configuration:

# cat /etc/bareos/bareos-dir.d/director/bareos-dir.conf
Director {
    ...
    Log Timestamp Format = "%Y-%m-%d %H:%M:%S %Z"
}

If those parameters are not supposed to change the format of that information, then I guess that the bug can be closed. Thanks for looking at it !
bruno-at-bareos

bruno-at-bareos

2023-08-29 13:28

manager   ~0005354

Timestamps will have a unified format see work in progress in https://github.com/bareos/bareos/pull/1536

Issue History

Date Modified Username Field Change
2021-07-30 19:08 FaabIBA New Issue
2023-07-20 09:46 bruno-at-bareos Assigned To => bruno-at-bareos
2023-07-20 09:46 bruno-at-bareos Status new => feedback
2023-07-20 09:46 bruno-at-bareos Note Added: 0005234
2023-07-20 10:03 bruno-at-bareos Note Added: 0005235
2023-08-08 11:51 FaabIBA Note Added: 0005317
2023-08-08 11:51 FaabIBA Status feedback => assigned
2023-08-08 11:53 FaabIBA Note Edited: 0005317
2023-08-29 13:28 bruno-at-bareos Status assigned => closed
2023-08-29 13:28 bruno-at-bareos Resolution open => fixed
2023-08-29 13:28 bruno-at-bareos Note Added: 0005354