{"_id":"timeshift-js","_rev":"9-303ddbd6ada8a654a9caa78e03e07dd0","name":"timeshift-js","description":"Time and timezone mocking / overriding","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"timeshift-js","version":"1.0.0","description":"Time and timezone mocking / overriding","homepage":"https://github.com/plaa/TimeShift-js","author":{"name":"Sampo Niskanen","email":"sampo.niskanen@iki.fi"},"main":"timeshift.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/plaa/TimeShift-js.git"},"keywords":["time","timezone","mocking"],"bugs":{"url":"https://github.com/plaa/TimeShift-js/issues"},"gitHead":"2b0ae910e28ebbe40482c13ba48dc5c54adfe2b7","_id":"timeshift-js@1.0.0","scripts":{},"_shasum":"61c2eebc12e9dabc81e5f99bbae2dc8d14593f70","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"plaa","email":"sampo.niskanen@iki.fi"},"dist":{"shasum":"61c2eebc12e9dabc81e5f99bbae2dc8d14593f70","tarball":"https://registry.npmjs.org/timeshift-js/-/timeshift-js-1.0.0.tgz","integrity":"sha512-USSBULAMJokUtuIAigUjJtX4zGAhXi2BKKK2Bhgf7KglztNL7F27VeTC13yBzLb/1FwpBtd29VRsYQl/E8rizg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBQjRHVcKx/zrFSIk8x2x4+HTovAUPLe09DOzzfRXgTvAiAHanpRgyDF4eOunUXQvEJnZXegJlM8WjgyjELWALXQJA=="}]},"maintainers":[{"name":"plaa","email":"sampo.niskanen@iki.fi"}],"directories":{}},"1.0.1":{"name":"timeshift-js","version":"1.0.1","description":"Time and timezone mocking / overriding","homepage":"https://github.com/plaa/TimeShift-js","author":{"name":"Sampo Juustila","email":"sampo.juustila@iki.fi"},"main":"timeshift.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/plaa/TimeShift-js.git"},"keywords":["time","timezone","mocking"],"bugs":{"url":"https://github.com/plaa/TimeShift-js/issues"},"gitHead":"4b258cb61ed859b224bd5bfd3f105081ae8d2a5f","_id":"timeshift-js@1.0.1","scripts":{},"_shasum":"8c6308eccae6cdeda5e639497c225fb2dc4db066","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"plaa","email":"sampo.juustila@iki.fi"},"dist":{"shasum":"8c6308eccae6cdeda5e639497c225fb2dc4db066","tarball":"https://registry.npmjs.org/timeshift-js/-/timeshift-js-1.0.1.tgz","integrity":"sha512-2iXKJLEUQUW6rwu+QVv3zAKGN9kMqPcxShk6CmwuNS7/h1U1QG2YLY0YQdcU5JZaEsU0AaUznHC4XPDJTlmBSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFLF7SJT0ozGQ3d54TAumUOkF6o4JvNL/Zau5uXCHBoCAiB5qY2dpbtQo1CDXsSwRNtnbZAA2zd71UK4oYrpAZwwvA=="}]},"maintainers":[{"name":"plaa","email":"sampo.niskanen@iki.fi"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/timeshift-js-1.0.1.tgz_1496884226622_0.3548998653423041"},"directories":{}},"1.1.0":{"name":"timeshift-js","version":"1.1.0","description":"Time and timezone mocking / overriding","homepage":"https://github.com/plaa/TimeShift-js","author":{"name":"Sampo Juustila","email":"sampo.juustila@iki.fi"},"main":"timeshift.js","typings":"timeshift.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/plaa/TimeShift-js.git"},"keywords":["time","timezone","mocking"],"bugs":{"url":"https://github.com/plaa/TimeShift-js/issues"},"gitHead":"74c04067e8dca130d5c9e6182bb35e6de9a08274","_id":"timeshift-js@1.1.0","_npmVersion":"5.7.1","_nodeVersion":"8.6.0","_npmUser":{"name":"plaa","email":"sampo.juustila@iki.fi"},"dist":{"integrity":"sha512-RQe/nURNyXjiN+t5GpL1RZO3HzYS5koRD1QX0JEvru/Q0YrdS2zFipsfJzKqAtAlGQdleqJIBLQP+Or6buQCuA==","shasum":"f2c793d42cd6780502478c58516f6d3d0cdc2eef","tarball":"https://registry.npmjs.org/timeshift-js/-/timeshift-js-1.1.0.tgz","fileCount":9,"unpackedSize":98632,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbY3fvCRA9TVsSAnZWagAAwikP/RtZZZJ0uApZdfQK9Yit\nr1y/qzLWK8PD57qZM3GJc6r3Ry+6sLMje/WPaFXR+hSHHFTsyiW5zLBJ4NUv\nQCHezt1qa+IhWPn1oLZTwnGBj7pe8IWDQmjZZODJ6OuTmU/rf1AxgSf4FDnK\nebSdrucWP0qSAbrubdbqVXDL6x8VMs11PGRq5kkQ02ti78LtVtoq/jVfoxxc\nW9s9LBVqumsHycfFz4CIah60BNbCvIDtEb9dmRb6P32M90+/sDJJYCuSs4s3\nWiSDPK7ILNTzl6mHauft95IHuZyjdcgFwv4R0SXKH3L0r7NvFjA9SZ9XH/I0\ncUw5fVb0JcJ0t9Bnh4bKIMB/Sv0lEl/UYqhY1R2FZ49m0sMAyIshr5scoT4g\nrEm/86Vecafu6DyBhYXSgzWBvcPVBgKOZ6VaBPRGnTsN7WE4PczIwVjgvgS6\nfrv5drArEnAWYmyVoGaPYTupxUcR/SLyhWmtrHxWS/+IJ9oWimSm7RyJnA9W\nljPgFYb7D/uM9jFucbTBMDslud0K7a45WiIyVqi+B3qk9L9Z9EN64Vn/EBA2\nLCS0nPi5RYJOVNEwpSjPS2tPTXWE8gm+hyQ8Q7k8FnlTp3KF9qcfasA0RxZG\nzVFTwu0udTT921sqTJb1ruEPFgkuRmHr6gVhueUwU1eSalWWWUesPAp6LhRk\ncUER\r\n=+ZUI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyiAis331TKpdey0tvt0R9QeTehNB0Y3apeBr7ZB6/5QIgXuIAlvgEmmVPd0EyL+/4NC0gkyu6gqUVCmK4drQQRno="}]},"maintainers":[{"name":"plaa","email":"sampo.niskanen@iki.fi"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/timeshift-js_1.1.0_1533245422540_0.3572323760458831"},"_hasShrinkwrap":false},"1.1.1":{"name":"timeshift-js","version":"1.1.1","description":"Time and timezone mocking / overriding","homepage":"https://github.com/plaa/TimeShift-js","author":{"name":"Sampo Juustila","email":"sampo.juustila@iki.fi"},"main":"timeshift.js","typings":"timeshift.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/plaa/TimeShift-js.git"},"keywords":["time","timezone","mocking"],"bugs":{"url":"https://github.com/plaa/TimeShift-js/issues"},"gitHead":"cb2d34922c253260b3e96364c0f2bcc7954f9705","_id":"timeshift-js@1.1.1","_npmVersion":"5.7.1","_nodeVersion":"8.6.0","_npmUser":{"name":"plaa","email":"sampo.juustila@iki.fi"},"dist":{"integrity":"sha512-I4M7z/uVYBZn99i5dNQFquiO5z+td5kCK59ybF6CgVSw1qKD2CicD2pGeByzybQa0/i53L9AhTBfr9e6N1yfTA==","shasum":"f5e473617f287a3e8ef7c78c7b625bfeeb3f5b45","tarball":"https://registry.npmjs.org/timeshift-js/-/timeshift-js-1.1.1.tgz","fileCount":10,"unpackedSize":98852,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbZHkuCRA9TVsSAnZWagAA8uUP/32Z1R2DwxlhBz3VHpWc\n/X6gzjVOxzyhDkrBCDGlPd4PVXSzoK4e/uLRoYOyjIEIzuX5d3Qij+LP+UIg\naumcKEY6OJ8KbwXKJlqeLljOt1Y+H96GJT7UNGTAVtgt2N8f7PbTVRWn4pWH\n7GsLAjx0S6N9x5aZJoyeME6aQXC45ap/PNl7gmyayuM5xnJQTtMo/+ZgVBoT\n8voJRCcKw0Or4yggT7RgX1nzYOg4qZ9A1jDLqUGr5AlNEdiy0S8znlcibLUv\nDEFc9FW11x5yBHdzrD3fDNhyu9PpeZzBKM3jPskRb8kHbVegHrXQy6UwhC2J\nnRoMOK7ctATsPRTFPfph3KlM7Zdq2+Z86nSD+BpWmyjqejS5rajsHMsI6Cmv\nUZUCbiLfs3g2ULTBBK1ceV7jYPRu+wBg1bYcqNNGepirHKn/ZuDy5cnFvTo8\npoZYnAE5h6rtVkEvdW0v7+dKuRd9YFAU7yqTw2/iGV4JJuCaTbVR3FwP8mRD\n8FmiD0+geeAtETBPnGmSmrypoQ0s+0WW7mcWp9VDKX7miA1ooOcUm/MrSrmf\n99qkmJ58Q/fmVJoTC+e/cwutT09RmSsgeFgaWJPqJHNxY8NHDIl4H5JeABym\njHAlTvawpTO78fbvA4DiZQnbJAssqeCh7fi5KyCqA46aOBIIctPP98zCJOa0\nOGYR\r\n=NjCU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDt9GUQBw+lwLXro+wJqdeCaPse8X78mQmmcjRZOTVAGAiEAm/DMqCrigx7nJu2J1viNv+SIKkV7nrEwp5wsw3L4r2o="}]},"maintainers":[{"name":"plaa","email":"sampo.niskanen@iki.fi"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/timeshift-js_1.1.1_1533311278420_0.5117281702281042"},"_hasShrinkwrap":false},"1.1.2":{"name":"timeshift-js","version":"1.1.2","description":"Time and timezone mocking / overriding","homepage":"https://github.com/plaa/TimeShift-js","author":{"name":"Sampo Juustila","email":"sampo.juustila@iki.fi"},"main":"timeshift.js","typings":"timeshift.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/plaa/TimeShift-js.git"},"keywords":["time","timezone","mocking"],"bugs":{"url":"https://github.com/plaa/TimeShift-js/issues"},"gitHead":"6ca0e187d00cb180858397ba4b111930119e941b","_id":"timeshift-js@1.1.2","_nodeVersion":"17.8.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-P0s9FOEs+fC49cuJp9rRZ4C38kLk1jQ1WVcB94lg8FcVUWERHmxVSdI3Fw3PzGDjlTERnk79QfSKjUig535wug==","shasum":"96c0502b9ef8fc153db25e5b4fe66a683da46ad5","tarball":"https://registry.npmjs.org/timeshift-js/-/timeshift-js-1.1.2.tgz","fileCount":9,"unpackedSize":99046,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFhsmtLoQhnnT2nVF1r0B87CFw2uHYnotoO2dwUXkgO0AiEA2AERLeuYD9F1/WNmUQ9wqs+tlM17FO+pzC0QoUtjSWM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUJexACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqDEQ//dHth89RLHeZdJ9oDXehEhrn4sI/hhmlyOJCHHWNhXoJMDR5B\r\nVVntMgw+ZzR9+BZsbPIrpoGVfLCcvw0jjx8U1zjMM4gX5kwskTBtNxg+vu4S\r\nCm4zrTPoUOjCItTUj1kaZ/jWYcVkUyPpHcrwoBjZa9WPj/1C1lZIb5gfldWO\r\n6JF+ocJyBJlhemp5PftKWP7g+Ba8Sq2OgMMYswANlAIzZloJWOggNGkZ8Dqe\r\nyAsDpZznioymmKgQDpiKpoj/43GYgWRVEhquklyvy57PeLn1rhXTCQ+TDXIY\r\niB5a/3XkDEAIODYZHMY9aWoehnGHrzEOjipBX8yde69OEFabIxhcbnRTWdOm\r\nrdtEkUnewojDjuEM4w+/PcMJiaoyZR2TCnEAPh9CgKZfb3fj2OT2MYbPn5Gh\r\niGJ318uPucNLqRhWqgEsFrib9bcscB2xoR/IbHCVtxzL51sl4r8/KVou3zlv\r\n+RNnmWeJ5BzJjxsVdwdriQmNF53TQtS9kd4pnNbpbLxHmd6Xz70dFA3C4J6C\r\nceipGLZ0VSYU+EUUVgVHmrqP+3boBlIhLsklxRoIERzDNHaumluAPJhm98rM\r\nrfGwYEV/Pvb8Ht3435+YlhWZLQea7yK1t3yvF0VERlXYnY0+fQSmm4j/ET75\r\nJsP7MHyjla6Fn35+KMKxpoUTGffn/568rfc=\r\n=v6xm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"plaa","email":"sampo.juustila@iki.fi"},"directories":{},"maintainers":[{"name":"plaa","email":"sampo.juustila@iki.fi"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/timeshift-js_1.1.2_1649448881394_0.13902933301915765"},"_hasShrinkwrap":false},"1.2.0":{"name":"timeshift-js","version":"1.2.0","description":"Time and timezone mocking / overriding","homepage":"https://github.com/plaa/TimeShift-js","author":{"name":"Sampo Juustila","email":"sampo.juustila@iki.fi"},"main":"timeshift.js","typings":"timeshift.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/plaa/TimeShift-js.git"},"keywords":["time","timezone","mocking"],"bugs":{"url":"https://github.com/plaa/TimeShift-js/issues"},"gitHead":"240a04fcfabcbff2f3f8f75cf2a8a83053589584","_id":"timeshift-js@1.2.0","_nodeVersion":"17.8.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-qyxLV8K+/8sfm2RZrd/BCmDQwEmkhm/oawH4lf781Oi182z40anG1Nk2yQSc5KT0EahnSb9Hugmj4JT4OXhr6A==","shasum":"3c57cd6927183db3bd915314081b8c679299c653","tarball":"https://registry.npmjs.org/timeshift-js/-/timeshift-js-1.2.0.tgz","fileCount":10,"unpackedSize":101806,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGLdD+TcBf/6AXi35viWs2R1Fr+1c1Qaok0ePkuzL3WZAiEAp0XOtnThLShV2R9Nh72J612XBkqYKhay5SA3jaOAiQw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJil7qcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp9iQ//QA/BRj2sWn2zpsagqVut1aR39CXCUhDtcnB1Y092wOjxx4Jz\r\ncOTq23z/9fMzpQp5tYcXgDlY1sSuvTukZR6y/0+DyXUWMnMVhU+xknp+s2q8\r\nbIgAgDZ/WcJ7/t5SbZ/z1PvmcTWLbIdE5AnHjVz/GbgJCBvzFARsArby2KMh\r\nL4Wv+sPBhw+3Iutq3MXKWyNmmyDj0d45IjM4CbbiEcEEIaUQYEX89hiD/I8W\r\nxKFeGxEagbKbqFLT4DJUrHjSq2IdQE+2Hywx8HqFhe556dEWE1b61aiwp2KI\r\ndwkMZDpWLR5qz7KhQq1IcLOFUAPHCA74t2YtMCouVL1iuBH3kHC2EBHIkkiv\r\n4twtSfNk3cGtcDbeNmK0IGlrRgJIXXKF+NZ5JtVfVDBkbZ7abmildKB+TPw+\r\nn3FqfiCKrpSgft1ob0zCl7dNcTJEh3FPEeTQ5d+IfVKUc6GgKP5bZ/+NTeuL\r\nMVLyEIZ1ibELrwGAIFQ67f6f7+8AsQTeu+OIvRKoTjMeVwScLn47rK+VscxW\r\njHo5gQGp8O4nU/FWCh9PSgvyTxUdnIkI5OQarcbD/+Dj+nwjMkPZnnNXxacr\r\nj7MnissQBoOfvWvSJiUtwwme+WUVAAH8pSAugisVBM8g5+Ojj7b8LcDyVLjg\r\nZDMyNznDPCrcquUrjtWl6TzH9PdurUdx7jI=\r\n=OnAB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"plaa","email":"sampo.juustila@iki.fi"},"directories":{},"maintainers":[{"name":"plaa","email":"sampo.juustila@iki.fi"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/timeshift-js_1.2.0_1654110876779_0.7271202639115424"},"_hasShrinkwrap":false}},"readme":"TimeShift.js\n============\n\n[![npm](https://img.shields.io/npm/v/timeshift-js.svg)](https://www.npmjs.com/package/timeshift-js)\n\nTimeShift.js allows mocking / overriding JavaScript's Date object so that you can set the current time and timezone.  It is meant for creating repeatable tests that utilize the current time or date.\n\nUsage\n-----\n\n```javascript\nnew Date().toString();                      // Original Date object\n\"Fri Aug 09 2013 23:37:42 GMT+0300 (EEST)\"\n\nDate = TimeShift.Date;                      // Overwrite Date object\nnew Date().toString();\n\"Fri Aug 09 2013 23:37:43 GMT+0300\"\n\nTimeShift.setTimezoneOffset(-60);           // Set timezone to GMT+0100 (note the sign)\nnew Date().toString();\n\"Fri Aug 09 2013 21:37:44 GMT+0100\"\n\nTimeShift.setTime(1328230923000);           // Set the time to 2012-02-03 01:02:03 GMT\nnew Date().toString();\n\"Fri Feb 03 2012 02:02:03 GMT+0100\"\n\nTimeShift.setTimezoneOffset(0);             // Set timezone to GMT\nnew Date().toString();\n\"Fri Feb 03 2012 01:02:03 GMT\"\n\nTimeShift.getTime();                        // Get overridden values\n1328230923000\nTimeShift.getTimezoneOffset();\n0\n\nvar t = 1577836800000;\nTimeShift.setTime(() => {                   // Set the time using a callback that's evaluated each time a new Date is created\n    t += 1000;\n    return t;\n});\nnew Date().toString();\n\"Wed Jan 01 2020 00:00:01 GMT\"\nnew Date().toString();\n\"Wed Jan 01 2020 00:00:02 GMT\"\n\nTimeShift.setTime(undefined);               // Reset to current time\nnew Date().toString();\n\"Fri Aug 09 2013 20:37:45 GMT\"\n\nnew Date().desc();                          // Helper method\n\"utc=Fri, 09 Aug 2013 20:37:46 GMT   local=Fri, 09 Aug 2013 20:37:46 GMT   offset=0\"\n\nnew TimeShift.OriginalDate().toString();    // Use original Date object\n\"Fri Aug 09 2013 23:37:47 GMT+0300 (EEST)\"\n```\n\nTime zones\n----------\n\nTimeShift.js always utilizes its internal time zone offset when converting between local time and UTC.  The offset factor is fixed, and it does not take into account DST changes.  Effectively it emulates a time zone with no DST.\n\n```javascript\nnew Date(1370034000000).toString();         // Original Date object uses variable offset\n\"Sat Jun 01 2013 00:00:00 GMT+0300 (EEST)\"\nnew Date(1356991200000).toString();\n\"Tue Jan 01 2013 00:00:00 GMT+0200 (EET)\"\n\nDate = TimeShift.Date;                      // TimeShift.js uses fixed offset\nnew Date(1370034000000).toString();\n\"Sat Jun 01 2013 00:00:00 GMT+0300\"\nnew Date(1356991200000).toString();\n\"Tue Jan 01 2013 01:00:00 GMT+0300\"\n```\n\nThe default time zone offset is the current local time zone offset.  Note that this can change depending on local DST.  Setting the time zone offset affects also previously created Date instances.\n\nThe time zone offset has the same sign as [Date.getTimezoneOffset](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset).  For example, -120 is GMT+0200 and +120 is GMT-0200.\n\nMocking Passage of Time\n-----------------------\nOnce the time is set, the same time will be returned every time you create a new Date object by default. It will not progress with the passage of time. Most of the time this is the desired behavior, but sometimes this can cause issues with things like canvas animations. If you want to maintain the normal passage of time starting with the date you set you can do so as follows:\n\n```javascript\nDate = TimeShift.Date;                                        // Override the Date object as usual\nvar originalDate = new TimeShift.OriginalDate().getTime();    // Get the actual date before setting\nvar mockTimestamp = 1577836800000;\n\n// Pass a callback to setTime that adds the change in time since the date was mocked to the the mocked time.\nTimeShift.setTime(() => {\n    var dateNow = new TimeShift.OriginalDate().getTime();\n    return mockTimestamp + dateNow - originalDate;\n});\n\nnew Date().toString()\n\"Wed Jan 01 2020 00:00:01 GMT\"\nnew Date().toString()\n\"Wed Jan 01 2020 00:00:02 GMT\"\nnew Date().toString()\n\"Wed Jan 01 2020 00:00:03 GMT\"\n```\n\nCaveats\n-------\n\nThe mock implementation of Date is not perfect.\n\n* Many string-generation methods are incomplete and return something indicative, but not fully correct.  In particular `toDateString`, `toLocaleDateString`, `toLocaleString`, `toLocaleTimeString`, `toTimeString` produce somewhat incorrect results.\n\n* The `toString` method does not contain any time zone name.\n\n* The `parse` method delegates directly to the original method and may not handle time zones correctly.\n\n* DST changes cannot be emulated.  The time zone offset it always fixed.\n\n* If a library or other code holds an original Date object or a reference to the Date prototype, things may break (e.g. error messages like \"this is not a Date object\").  In this case you should overwrite the Date object before loading the library.\n\nIf you'd like to fix some of these issues, please fork the repository, implement the desired functionality, add unit tests to `tests.js` and send a pull request.\n\nLicense\n-------\n\nTimeShift.js is Copyright 2013 Mobile Wellness Solutions MWS Ltd and Sampo Juustila.\n\nIt is released under the MIT license.\n","maintainers":[{"name":"plaa","email":"sampo.juustila@iki.fi"}],"time":{"modified":"2022-06-27T06:50:46.902Z","created":"2015-12-25T20:50:18.949Z","1.0.0":"2015-12-25T20:50:18.949Z","1.0.1":"2017-06-08T01:10:27.562Z","1.1.0":"2018-08-02T21:30:22.657Z","1.1.1":"2018-08-03T15:47:58.518Z","1.1.2":"2022-04-08T20:14:41.594Z","1.2.0":"2022-06-01T19:14:36.967Z"},"homepage":"https://github.com/plaa/TimeShift-js","keywords":["time","timezone","mocking"],"repository":{"type":"git","url":"git+https://github.com/plaa/TimeShift-js.git"},"author":{"name":"Sampo Juustila","email":"sampo.juustila@iki.fi"},"bugs":{"url":"https://github.com/plaa/TimeShift-js/issues"},"license":"MIT","readmeFilename":"README.md"}