@@ -196,7 +196,8 @@ func (t Date) Equal(u Date) bool {
// 是否零值
func (t Date) IsZero() bool {
- return t.T().IsZero()
+ tm := t.T()
+ return tm.Second() == 0 && tm.Nanosecond() == 0
}
// 获取年、月、日
@@ -202,7 +202,8 @@ func (t Datetime) Equal(u Datetime) bool {
func (t Datetime) IsZero() bool {
@@ -196,7 +196,8 @@ func (t Time) Equal(u Time) bool {
func (t Time) IsZero() bool {