mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Reorg
This commit is contained in:
9
pkg/utils/date.go
Normal file
9
pkg/utils/date.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package utils
|
||||
|
||||
import "time"
|
||||
|
||||
func GetYMDFromDatabaseDate(dateString string) string {
|
||||
t, _ := time.Parse(time.RFC3339, dateString)
|
||||
// https://stackoverflow.com/a/20234207 WTF?
|
||||
return t.Format("2006-01-02")
|
||||
}
|
||||
Reference in New Issue
Block a user