File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -476,7 +476,6 @@ func ValidateTime(t time.Time) interface{} {
476
476
// ValidateDatetime receives a time and returns either that time or nil if it's
477
477
// not a valid datetime.
478
478
func ValidateDatetime (t time.Time ) interface {} {
479
- t = t .Round (time .Microsecond )
480
479
if t .Before (datetimeTypeMinDatetime ) || t .After (datetimeTypeMaxDatetime ) {
481
480
return nil
482
481
}
@@ -486,7 +485,6 @@ func ValidateDatetime(t time.Time) interface{} {
486
485
// ValidateTimestamp receives a time and returns either that time or nil if it's
487
486
// not a valid timestamp.
488
487
func ValidateTimestamp (t time.Time ) interface {} {
489
- t = t .Round (time .Microsecond )
490
488
if t .Before (datetimeTypeMinTimestamp ) || t .After (datetimeTypeMaxTimestamp ) {
491
489
return nil
492
490
}
@@ -496,7 +494,6 @@ func ValidateTimestamp(t time.Time) interface{} {
496
494
// validateDate receives a time and returns either that time or nil if it's
497
495
// not a valid date.
498
496
func ValidateDate (t time.Time ) interface {} {
499
- t = t .Round (time .Microsecond )
500
497
if t .Before (datetimeTypeMinDate ) || t .After (datetimeTypeMaxDate ) {
501
498
return nil
502
499
}
You can’t perform that action at this time.
0 commit comments