aboutsummaryrefslogtreecommitdiff
path: root/field_time.go
diff options
context:
space:
mode:
Diffstat (limited to 'field_time.go')
-rw-r--r--field_time.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/field_time.go b/field_time.go
index d8a1776..25a2c1e 100644
--- a/field_time.go
+++ b/field_time.go
@@ -19,7 +19,6 @@
package schwift
import (
- "math"
"strconv"
"time"
)
@@ -58,11 +57,7 @@ func (f FieldUnixTimeReadonly) Get() time.Time {
if err != nil {
return time.Time{}
}
- seconds := math.Floor(v)
- return time.Unix(
- int64(seconds),
- int64(1e9*(v-seconds)),
- )
+ return time.Unix(0, int64(1e9*v))
}
func (f FieldUnixTimeReadonly) validate() error {