mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 18:16:26 +00:00
More work to support nullable foreign keys
Adds nullable int/uint types
This commit is contained in:
9
backend/internal/util/time.go
Normal file
9
backend/internal/util/time.go
Normal file
@ -0,0 +1,9 @@
|
||||
package util
|
||||
|
||||
import "time"
|
||||
|
||||
// UnixMilliToNiceFormat converts a millisecond to nice string
|
||||
func UnixMilliToNiceFormat(milli int64) string {
|
||||
t := time.Unix(0, milli*int64(time.Millisecond))
|
||||
return t.Format("2006-01-02 15:04:05")
|
||||
}
|
Reference in New Issue
Block a user