Skip to content
Snippets Groups Projects
Commit 56f6e43b authored by Francé Wilke's avatar Francé Wilke
Browse files

Add date util

parent abf53fa3
Branches
No related tags found
No related merge requests found
......@@ -12,6 +12,11 @@ func DateLayoutYearMonthDayTimeT() string {
return layout
}
func DateLayoutYearMonthDayTimeTZ() string {
layout := "2006-01-02T15:04:05Z"
return layout
}
func DateLayoutYearMonthDayTimeTimezone() string {
layout := "2006-01-02 15:04:05-07:00"
return layout
......@@ -60,7 +65,6 @@ func DateDBFormattedStringDateOnly(date time.Time) string {
return date.Format("2006-01-02")
}
func CurrentLocation() *time.Location {
loc, _ := time.LoadLocation(TimeZoneString)
return loc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment