Added KOITO_DATE_FORMAT option to choose how the dates are displayed

This commit is contained in:
joffrey-b 2026-04-21 11:17:47 +02:00
parent 0ec7b458cc
commit 61d5f2f5f0
10 changed files with 53 additions and 9 deletions

View file

@ -90,6 +90,12 @@ func DefaultTheme() string {
return globalConfig.defaultTheme
}
func DateFormat() string {
lock.RLock()
defer lock.RUnlock()
return globalConfig.dateFormat
}
func FullImageCacheEnabled() bool {
lock.RLock()
defer lock.RUnlock()
@ -204,3 +210,4 @@ func ForceTZ() *time.Location {
defer lock.RUnlock()
return globalConfig.forceTZ
}