Skip to content

Commit

Permalink
fixing timezone detection issue with tzdata import
Browse files Browse the repository at this point in the history
Signed-off-by: jenish-jain <jenishjain@rocketmail.com>
  • Loading branch information
jenish-jain committed Oct 8, 2023
1 parent bc4d8d2 commit 43f836d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ RUN go mod download
# Copy local code to the container image.
COPY . ./

RUN apk update && apk add bash && apk --no-cache add tzdata

RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" cmd/bean_counter/main.go

FROM scratch
Expand Down
1 change: 1 addition & 0 deletions pkg/utils/date_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"regexp"
"strconv"
"time"
_ "time/tzdata"
)

func ParseMDYYYYToDate(dateString string) time.Time {
Expand Down

0 comments on commit 43f836d

Please sign in to comment.