fix: wrong date time datatype used for read operations with Postgres

This commit is contained in:
Elias Schneider
2024-12-13 08:43:46 +01:00
parent 34e35193f9
commit bad901ea2b
3 changed files with 7 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ import (
"time"
)
// DateTime custom type for time.Time to store date as unix timestamp in the database
// DateTime custom type for time.Time to store date as unix timestamp for sqlite and as date for postgres
type DateTime time.Time
func (date *DateTime) Scan(value interface{}) (err error) {