currentDateAsPrefix will allow the timetz value to have the current time zone rather than timezone of 1970-01-01 in cases of timezone undefined. Go uses location to define the timezone, which can differ in cases of standard vs daylight saving time.
()
| 257 | // Go uses location to define the timezone, which can differ in cases of |
| 258 | // standard vs daylight saving time. |
| 259 | func currentDateAsPrefix() string { |
| 260 | return time.Now().Format("2006-01-02") |
| 261 | } |
no test coverage detected