Skip to content

Commit

Permalink
Fix same issue as 3e123b8 at another place in the code
Browse files Browse the repository at this point in the history
  • Loading branch information
bpvgoncalves committed Oct 18, 2023
1 parent dfc1c8f commit 73d50fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/R-CMD-check-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
config:
- {os: windows-latest, r: 'release'}
# - {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}

env:
Expand Down
2 changes: 1 addition & 1 deletion R/as_der.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ as.der.pqcrypto_timestamp <- function (ts) {
# dates in 2050 or later MUST be encoded as GeneralizedTime.
# -- RFC 5280

dt <- as.POSIXlt(attr(ts, "unix_ts"), tz="UTC")
dt <- as.POSIXlt(attr(ts, "unix_ts"), tz="UTC", origin = "1970-01-01")
if (dt$year <= 49 || dt$year >= 150) {
# GeneralizedTime
strdate <- strftime(dt, "%Y%m%d%H%M%SZ", tz="UTC")
Expand Down

0 comments on commit 73d50fb

Please sign in to comment.