From aa6aa15ad1fff7ef3cdcb94123fbd51451af238a Mon Sep 17 00:00:00 2001 From: twystd Date: Fri, 31 May 2024 11:27:40 -0700 Subject: [PATCH] Replacing last remaining Date pointers with zero values --- acl/acl.go | 4 ++-- go.mod | 4 ++-- go.sum | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/acl/acl.go b/acl/acl.go index 5c7a8ab..8848031 100644 --- a/acl/acl.go +++ b/acl/acl.go @@ -131,12 +131,12 @@ func PermissionsFromTable(table *api.Table) ([]permission, error) { return nil, fmt.Errorf("invalid ACL table - invalid 'card number':%s (%w)", row[index.cardnumber-1], err) } - from, err := types.DateFromString(row[index.from-1]) + from, err := types.ParseDate(row[index.from-1]) if err != nil { log.Warnf("ACL", "card %v invalid from date '%s' (%v)", cardID, row[index.from-1], err) } - to, err := types.DateFromString(row[index.to-1]) + to, err := types.ParseDate(row[index.to-1]) if err != nil { log.Warnf("ACL", "card %v invalid to date '%s' (%v)", cardID, row[index.to-1], err) } diff --git a/go.mod b/go.mod index b44049a..3597272 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.22 toolchain go1.22.0 require ( - github.com/uhppoted/uhppote-core v0.8.9-0.20240530164535-c743e72dd723 - github.com/uhppoted/uhppoted-lib v0.8.9-0.20240530171621-d3485dd0b34d + github.com/uhppoted/uhppote-core v0.8.9-0.20240531170136-432a5b0fbb8b + github.com/uhppoted/uhppoted-lib v0.8.9-0.20240531170312-cb08695b7cc2 golang.org/x/sys v0.20.0 ) diff --git a/go.sum b/go.sum index 873f5bc..e760703 100644 --- a/go.sum +++ b/go.sum @@ -108,6 +108,8 @@ github.com/uhppoted/uhppote-core v0.8.9-0.20240528150603-37c5df8bb47f h1:cee7NdQ github.com/uhppoted/uhppote-core v0.8.9-0.20240528150603-37c5df8bb47f/go.mod h1:Q+DHtT8s74efLs2b0eF20DRBUL9yBkySwaTQ+0lsEVM= github.com/uhppoted/uhppote-core v0.8.9-0.20240530164535-c743e72dd723 h1:itDcd2d0Iz23IWG+Vl6kj8MqPM/mv4C097O5hUCkLYg= github.com/uhppoted/uhppote-core v0.8.9-0.20240530164535-c743e72dd723/go.mod h1:Q+DHtT8s74efLs2b0eF20DRBUL9yBkySwaTQ+0lsEVM= +github.com/uhppoted/uhppote-core v0.8.9-0.20240531170136-432a5b0fbb8b h1:alKlb6od5XjvzOfaJRW28M6LOzrxseW7VgWr9q4M+WM= +github.com/uhppoted/uhppote-core v0.8.9-0.20240531170136-432a5b0fbb8b/go.mod h1:Q+DHtT8s74efLs2b0eF20DRBUL9yBkySwaTQ+0lsEVM= github.com/uhppoted/uhppoted-lib v0.7.3-0.20220128210643-c4d9a4bc1660 h1:BRLml03IH5I0wzAOaKrmQ3V/wbRdoBmRb/sBX+uX7Nw= github.com/uhppoted/uhppoted-lib v0.7.3-0.20220128210643-c4d9a4bc1660/go.mod h1:HQChamquwltZIqT+tmMfDLTjaqLXEsokPQf8Utxi9MA= github.com/uhppoted/uhppoted-lib v0.7.3-0.20220531204140-34d8876e5e89 h1:Cwp9o2KzliY85ERUkV9Z9RBFjVotzHLMAQ89EBblQcg= @@ -248,6 +250,8 @@ github.com/uhppoted/uhppoted-lib v0.8.9-0.20240528151010-a3cffa5b9381 h1:QuAU374 github.com/uhppoted/uhppoted-lib v0.8.9-0.20240528151010-a3cffa5b9381/go.mod h1:Yf3cROHpYsNUX7IJWsZncCQVwyG4eppUWQEs1ST6tv0= github.com/uhppoted/uhppoted-lib v0.8.9-0.20240530171621-d3485dd0b34d h1:tF9pdfTgbUfdP2tQ9/H/olYEHkXVh+aDiuq0DatcdFQ= github.com/uhppoted/uhppoted-lib v0.8.9-0.20240530171621-d3485dd0b34d/go.mod h1:luEG0DJWxSzCTDqYkqvE+T0HP59LKDUJ4iZHGn84C6w= +github.com/uhppoted/uhppoted-lib v0.8.9-0.20240531170312-cb08695b7cc2 h1:Slbb2pwoiZ1CTjfFUDhx4E5AD6qv6Eq2cBiTUcoos/E= +github.com/uhppoted/uhppoted-lib v0.8.9-0.20240531170312-cb08695b7cc2/go.mod h1:pg8dPLgY+Faru4Zc5Et0Q/bq5lbKU420/VdXQLkkjCE= golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 h1:XfKQ4OlFl8okEOr5UvAqFRVj8pY/4yfcXrddB8qAbU0= golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a h1:dGzPydgVsqGcTRVwiLJ1jVbufYwmzD3LfVPLKsKg+0k=