Your message dated Tue, 07 Feb 2023 01:04:06 +0000
with message-id <[email protected]>
and subject line Bug#1030724: fixed in node-marked-man 1.3.3-1
has caused the Debian Bug report #1030724,
regarding node-marked-man: please make the build reproducible
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1030724: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1030724
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: node-marked-man
Version: 1.3.1-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps toolchain
X-Debbugs-Cc: [email protected]

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
node-marked-man generates manpages that vary depending on the system
timezone. For example, within the tree of src:node-gulp:

  $ dpkg-parsechangelog --show-field=Date
  Wed, 30 Nov 2022 23:28:47 +0100

  $ TZ="/usr/share/zoneinfo/Etc/GMT-14" marked-man --name gulp 
--date="$(dpkg-parsechangelog --show-field=Date)" docs/CLI.md | head -n1
  .TH "GULP" "1" "December 2022" "4.0.2"

  $ TZ="/usr/share/zoneinfo/Etc/GMT+11" marked-man --name gulp 
--date="$(dpkg-parsechangelog --show-field=Date)" docs/CLI.md | head -n1
  .TH "GULP" "1" "November 2022" "4.0.2"

This seems to be caused by the use of Date.prototype.toLocaleDateString
in utils.js:

    export function manDate(date) {
      const stamp = parseInt(date);
      if (!Number.isNaN(stamp) && stamp.toString().length == date.length) date 
= stamp;
      date = new Date(date);
      return date.toLocaleString('en', { month: 'long', year: 'numeric' });
    }

A patch is attached that normalises this to UTC. After this patch is
applied, you get the following:

  $ TZ="/usr/share/zoneinfo/Etc/GMT-14" marked-man --name gulp 
--date="$(dpkg-parsechangelog --show-field=Date)" docs/CLI.md | head -n1
  .TH "GULP" "1" "November 2022" "4.0.2"

  $ TZ="/usr/share/zoneinfo/Etc/GMT+11" marked-man --name gulp 
--date="$(dpkg-parsechangelog --show-field=Date)" docs/CLI.md | head -n1
  .TH "GULP" "1" "November 2022" "4.0.2"


[0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
diff --git a/src/utils.js b/src/utils.js
index 1c1d37d..59d042f 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -80,6 +80,7 @@ export function manDate(date) {
        const stamp = parseInt(date);
        if (!Number.isNaN(stamp) && stamp.toString().length == date.length) 
date = stamp;
        date = new Date(date);
+       date = new Date(date.getTime() + date.getTimezoneOffset() * 60000);
        return date.toLocaleString('en', { month: 'long', year: 'numeric' });
 }
 

--- End Message ---
--- Begin Message ---
Source: node-marked-man
Source-Version: 1.3.3-1
Done: Jérémy Lal <[email protected]>

We believe that the bug you reported is fixed in the latest version of
node-marked-man, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jérémy Lal <[email protected]> (supplier of updated node-marked-man package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 07 Feb 2023 01:34:20 +0100
Source: node-marked-man
Architecture: source
Version: 1.3.3-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers 
<[email protected]>
Changed-By: Jérémy Lal <[email protected]>
Closes: 1030724
Changes:
 node-marked-man (1.3.3-1) unstable; urgency=medium
 .
   * New upstream version 1.3.3
     Closes: 1030724
Checksums-Sha1:
 d347f6a9b6ae07ec34e37e9b7ebc96427b8c4344 2169 node-marked-man_1.3.3-1.dsc
 3fdf48e61a292fde9bd70e46370e490eabfbd1e3 45226 
node-marked-man_1.3.3.orig.tar.gz
 483f1d03c53388251066a475972007abc5f74b3c 3828 
node-marked-man_1.3.3-1.debian.tar.xz
 dc6580b12364e3480ab870dff2f488b91b37cc97 16799 
node-marked-man_1.3.3-1_source.buildinfo
Checksums-Sha256:
 85cf075ab0da304bc004787f5cd18a150a977ef409266ec7e8606c6a1a62ddc5 2169 
node-marked-man_1.3.3-1.dsc
 5513f8a8f821e10f9fa8bbdaf899867d3d7c19a72c1e49447752fd1b1b716443 45226 
node-marked-man_1.3.3.orig.tar.gz
 4b21f3402f02def02e3d5329a2dfc805c665c392bf6909be817312e59e1d25b0 3828 
node-marked-man_1.3.3-1.debian.tar.xz
 32d4c7f79dc9a45923b36896a1e9080ac7c6d5919e1b1ec3e6622c759c908607 16799 
node-marked-man_1.3.3-1_source.buildinfo
Files:
 b4a6f03070b8681c0f373bdb771c271d 2169 javascript optional 
node-marked-man_1.3.3-1.dsc
 f274cc7f14ebc5d421988a5aab08c2ba 45226 javascript optional 
node-marked-man_1.3.3.orig.tar.gz
 aca29ed05a6d862b73453d73e72949e2 3828 javascript optional 
node-marked-man_1.3.3-1.debian.tar.xz
 303a511a49077f58b0f8b3fd49449e29 16799 javascript optional 
node-marked-man_1.3.3-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJGBAEBCAAwFiEEA8Tnq7iA9SQwbkgVZhHAXt0583QFAmPhngMSHGthcG91ZXJA
bWVsaXgub3JnAAoJEGYRwF7dOfN0BMwQAJ5/caROp9HaAZ0fG14wZ/LaXYFKhurO
PoqYYFsl7DNhxCF4BsR8hQKt3ZbAkqP/dfRSZIXCnQCP/7h0IK/0jkk1Gjhr8g1z
7Ybj7fk6In7nWN2KB7bK6lcLPtWuhnTHwxahe1w4oIENwpV/I21V2pgjs91RlwUZ
yZVmVJP+pUR18sNiSnZHoaeIUUUJ8Iwv+lLAhxuyRu0MZlS7XI5epqCvReJqoEf7
mX65NuL8ij0WHAA+YaICteQZE3Jqk+viCi19NGz6++Mhkhou5KArFyLR+32bjwVI
i083EujvmHlBD6QeRkwR43t9i2H40hTlia9KsSiipKHY9kO+Rnkfrwz5PY6X0WNs
nZmDhYyt8or+y1QUQgMbRXmgoRQMCYXiNEDySNEm2LB7pgbG07e8MkpAC+ouaA52
2hvkqjbVW2UCmgBMCz7kKZqfeEaYmRd52yH+zDHhmXy49PNdkGo7XNU3VH6GuRRi
rYfnJLEXAHj6CBYmnZZxe27+mqUi93PUdjBOUKRJzK557TXZf33G+9Yr2kpGCoMh
nU5JFxjcKbxf+j9+A3pXrS4UVYmyYBJMJpMxHe0Z+E3B3rQNWiwcOQk9rUx99Xmw
6ieEVe8sPKeeDg+GD9me4207sRbHP86q6O9rE40HJyoGtNreKkoAsIsexT7Vmaka
izYRhKELQwSa
=DlkI
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to