From fd1acf26c3c025ac3e6af9ffea7c47a3898b3e1f Mon Sep 17 00:00:00 2001 From: Dustin Blackman Date: Wed, 12 Apr 2017 16:24:17 -0400 Subject: [PATCH] fix isSame pointer --- moment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }