Skip to content

Commit

Permalink
Fix for time.Date nsec
Browse files Browse the repository at this point in the history
  • Loading branch information
mrusme committed Nov 22, 2022
1 parent 8cfe7a8 commit c99c208
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions caldr.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ func getStartEndByArgs(args []string) (time.Time, time.Time, error) {
func getStartEndForDate(t time.Time) (time.Time, time.Time) {
y, m, d := t.Date()
sT := time.Date(y, m, d, 0, 0, 0, 0, t.Location())
eT := time.Date(y, m, d, 23, 59, 59, 9999999999, t.Location())

eT := time.Date(y, m, d, 23, 59, 59, 999999999, t.Location())
return sT, eT
}

0 comments on commit c99c208

Please sign in to comment.