mirror of
https://github.com/offen/docker-volume-backup.git
synced 2026-05-01 20:45:36 +02:00
Support reading timezone info from env (#748)
* add tzdata package * updated timezone documentation * add missing bind-mount from updated docs * Add timezone deprecation warnings and related logging to backup commands * fix lint CI job error * Address PR comments: refactor timezone deprecation warning handling, update docs
This commit is contained in:
committed by
GitHub
parent
0955d6fe80
commit
6a83ce4034
@@ -34,6 +34,13 @@ func runPrintConfig() error {
|
||||
for _, warning := range warnings {
|
||||
fmt.Printf("warning:%s\n", warning)
|
||||
}
|
||||
timezoneWarnings, warnErr := config.timezoneDeprecationWarnings()
|
||||
if warnErr != nil {
|
||||
return errwrap.Wrap(warnErr, "error collecting timezone deprecation warnings")
|
||||
}
|
||||
for _, warning := range timezoneWarnings {
|
||||
fmt.Printf("warning:%s\n", warning)
|
||||
}
|
||||
// insert line breaks before each field name, assuming field names start with uppercase letters
|
||||
formatted := formatter.ReplaceAllString(fmt.Sprintf("%+v", *config), "\n$1")
|
||||
fmt.Printf("%s\n", formatted)
|
||||
|
||||
Reference in New Issue
Block a user