1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

feat: settings dialog for mail reports

This commit is contained in:
Ferdinand Mütsch
2021-04-30 16:20:08 +02:00
parent a4e7158db2
commit ef9303e61e
15 changed files with 584 additions and 482 deletions

View File

@@ -33,10 +33,14 @@ func FormatDateTime(date time.Time) string {
return date.Format(config.SimpleDateTimeFormat)
}
func FormatDateHuman(date time.Time) string {
func FormatDateTimeHuman(date time.Time) string {
return date.Format("Mon, 02 Jan 2006 15:04")
}
func FormatDateHuman(date time.Time) string {
return date.Format("Mon, 02 Jan 2006")
}
func Add(i, j int) int {
return i + j
}