timezone errors in \pc@pdfdate@auto with negative time zone hours

Issue #25 new
Former user created an issue

With negative hours in a timezone, the \pc@pdfdate@auto creates an extra \relax in the date string; e.g. \makeatletter \edef\this{\pc@pdfdate@auto}% \show\this

gives:

\this=macro: ->D:20201023174433\relax -0400. l.18 \show\this

There are actually 2 errors here, as we want to produce: D:20201023174433-04'00'

The last few lines in the expansion of \pc@pdfdate@auto should include something like:

\ifnum\@dtm@currenttimezonehour<0 \else+\fi \DTMtwodigits{\@dtm@currenttimezonehour}'% \DTMtwodigits{\@dtm@currenttimezoneminute}'%

Notes: 1. the space character within \ifnum\@dtm@currenttimezonehour<0 \else+\fi
is what inhibits the \relax with a negative hour 2. the quote ' characters after these 2-digit blocks. Maybe the package needs to ensure that the correct catcodes are in place for these.

Comments (0)

  1. Log in to comment