If the value stored in the database does not convert into a valid time, I believe we should return time.Time{} instead of time.Now() so that the caller can appropriately handle the invalid value rather than operate under the false assumption that its value is the current timestamp.
If the value stored in the database does not convert into a valid time, I believe we should return
time.Time{}
instead oftime.Now()
so that the caller can appropriately handle the invalid value rather than operate under the false assumption that its value is the current timestamp.