mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 17:23:16 +03:00
9 lines
154 B
Go
9 lines
154 B
Go
package utils
|
|
|
|
import "time"
|
|
|
|
func FormatDateForDb(time time.Time) string {
|
|
const layout = "2006-01-02 15:04:05.000-07:00"
|
|
return time.Format(layout)
|
|
}
|