dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 0a73dada1df449bbfd94b2d7f9207f7f9df0b283
parent 9aed54a153913707a99eb793ef1adb1f4d173fe5
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu, 12 Jan 2023 19:49:03 -0800

cleanup

Diffstat:
Mpkg/database/tableUsers.go | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/pkg/database/tableUsers.go b/pkg/database/tableUsers.go @@ -165,16 +165,18 @@ func (u *User) GetFont() string { } func (u *User) GetDateFormat() string { - if u.DateFormat == 1 { + switch u.DateFormat { + case 1: return "15:04:05" - } else if u.DateFormat == 2 { + case 2: return "01-02 03:04:05" - } else if u.DateFormat == 3 { + case 3: return "03:04:05" - } else if u.DateFormat == 4 { + case 4: return "" + default: + return "01-02 15:04:05" } - return "01-02 15:04:05" } func (u *User) AccountOldEnough() bool {