Skip to content

Commit

Permalink
update score time
Browse files Browse the repository at this point in the history
  • Loading branch information
berejant committed Oct 1, 2024
1 parent cba7cf5 commit 2b28036
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions updatedScoresImporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,8 @@ func (importer *UpdatedScoresImporter) getLastRegDate() time.Time {
func (importer *UpdatedScoresImporter) setLastRegDate(newLastRegDate time.Time) (err error) {
if !importer.lastRegDate.Equal(newLastRegDate) {
importer.lastRegDate = newLastRegDate.In(time.Local)
fmt.Printf("newLastRegDate: %+v\n", newLastRegDate)
var value []byte
value, _ = importer.lastRegDate.MarshalBinary()

value, _ := importer.lastRegDate.MarshalBinary()
err = importer.storage.Set(value)

if err != nil {
Expand Down

0 comments on commit 2b28036

Please sign in to comment.