Show timer, set time on create

This commit is contained in:
2024-04-13 23:48:00 +02:00
parent 5e12dabced
commit c3b66fc951
10 changed files with 160 additions and 20 deletions

View File

@ -12,12 +12,12 @@ func MakeTimeNow() Time {
return Time(time.Now().UTC())
}
func (self Time) String() string {
return time.Time(self).String()
func (self Time) AsUTCString() string {
return time.Time(self).Format(time.RFC3339)
}
func (self Time) Value() (sqldriver.Value, error) {
return time.Time(self).Format(time.RFC3339), nil
return self.AsUTCString(), nil
}
func (self *Time) Scan(value any) error {