mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
initprovider: add load data options
Fixes #741 Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -84,7 +84,7 @@ func RemoveDuplicates(obj []string) []string {
|
||||
|
||||
// GetTimeAsMsSinceEpoch returns unix timestamp as milliseconds from a time struct
|
||||
func GetTimeAsMsSinceEpoch(t time.Time) int64 {
|
||||
return t.UnixNano() / 1000000
|
||||
return t.UnixMilli()
|
||||
}
|
||||
|
||||
// GetTimeFromMsecSinceEpoch return a time struct from a unix timestamp with millisecond precision
|
||||
|
||||
Reference in New Issue
Block a user