mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-16 15:10:12 +01:00
fix notification Custom date format tip
This commit is contained in:
parent
76f9cea516
commit
e0d82788fe
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ outputs timestamp and log level.
|
||||||
If you want to adjust the date/time format it must show how the
|
If you want to adjust the date/time format it must show how the
|
||||||
[reference time](https://golang.org/pkg/time/#pkg-constants) (_Mon Jan 2 15:04:05 MST 2006_) would be displayed in your
|
[reference time](https://golang.org/pkg/time/#pkg-constants) (_Mon Jan 2 15:04:05 MST 2006_) would be displayed in your
|
||||||
custom format.
|
custom format.
|
||||||
i.e., The day of the year has to be 1, the month has to be 2 (february), the hour 3 (or 15 for 24h time) etc.
|
i.e., The day of the year has to be 2, the month has to be 1 (january), the hour 3 (or 15 for 24h time) etc.
|
||||||
|
|
||||||
!!! note "Skipping notifications"
|
!!! note "Skipping notifications"
|
||||||
To skip sending notifications that do not contain any information, you can wrap your template with `{{if .}}` and `{{end}}`.
|
To skip sending notifications that do not contain any information, you can wrap your template with `{{if .}}` and `{{end}}`.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue