[Pkg-javascript-devel] Bug#930647: Bug#930647: this is a timezone issue

Pirate Praveen praveen at onenetbeyond.org
Thu Jun 20 12:35:19 BST 2019



On 2019, ജൂൺ 20 2:07:38 PM IST, Paolo Greppi <paolo.greppi at libpf.com> wrote:
>nodejs -e 'dsv = require("."); console.log(dsv.csvFormat([{date: new
>Date(2018, 0, 1)}]));'
>TZ='UTC' nodejs -e 'dsv = require(".");
>console.log(dsv.csvFormat([{date: new Date(2018, 0, 1)}]));'
>TZ='EST' nodejs -e 'dsv = require(".");
>console.log(dsv.csvFormat([{date: new Date(2018, 0, 1)}]));'
>TZ='America/Los_Angeles' nodejs -e 'dsv = require(".");
>console.log(dsv.csvFormat([{date: new Date(2018, 0, 1)}]));'
>
>outputs respectively:
>2017-12-31T23:00Z
>2018-01-01
>2018-01-01T05:00Z
>2018-01-01T08:00Z
>
>looking at the 1st failing test:
>test.deepEqual(dsv.csvFormat([{date: new Date(2018, 0, 1)}]),
>"date\n2018-01-01T08:00Z");
>it looks like the upstream developers live in California
>
>so it can be fixed with:
>https://salsa.debian.org/js-team/node-d3-dsv/commit/9a445e4a6c01237c5e73a71daa8ad142450007e9
>
>Paolo

Thanks for the fix. I was thinking a change in some timezone library caused it as it had worked in previous versions.
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



More information about the Pkg-javascript-devel mailing list