Skip to content

Commit 45abed6

Browse files
authored
Fix time parser for dates
1 parent e242a3d commit 45abed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func createKvitto(text string) (*Kvitto, error) {
9696
if strings.Contains(v[0], "Beställd av") {
9797
ent.SoldBy = v[5]
9898
} else if strings.Contains(v[0], "Beställd") {
99-
t, err := time.ParseInLocation("02 Jan 15:04", v[6], loc)
99+
t, err := time.ParseInLocation("_2 Jan 15:04", v[6], loc)
100100
if err != nil {
101101
return nil, fmt.Errorf("unable to parse time: %v", err)
102102
}

0 commit comments

Comments
 (0)