diff --git a/moment.go b/moment.go index d2ff48a..a9062b1 100644 --- a/moment.go +++ b/moment.go @@ -1022,7 +1022,7 @@ func (m *Moment) IsBefore(t Moment) bool { return m.GetTime().Before(t.GetTime()) } -func (m *Moment) IsSame(t *Moment, layout string) bool { +func (m *Moment) IsSame(t Moment, layout string) bool { return m.Format(layout) == t.Format(layout) }