[Pkg-javascript-devel] Bug#861592: node-dateformat: FTBFS: AssertionError: '1:19:44 PM GMT' === '1:19:44 PM UTC'
Florian Vessaz
florian at florv.ch
Sun May 7 07:02:05 UTC 2017
Dear maintainer,
Whether the issue arises or not depends on the timezone of the system.
For instance the test suite fails in the following timezones: Etc/GMT,
Etc/GMT+1 or Pacific/Tahiti (and ina lot of others too).
I couldn't find a reliable way to set the timezone after node has started.
I've found the following discussion in the NodeJS issue tracker
confirming this situation:
https://github.com/nodejs/node-v0.x-archive/issues/3286
IMHO it would thus be best to set the timezone to UTC before running the
tests. This can easily be achieved from debian/control:
override_dh_auto_test:
TZ=Etc/UTC mocha -R spec
Cheers,
-- Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20170507/7b9c2ada/attachment.sig>
More information about the Pkg-javascript-devel
mailing list