adamgibbons / ics

iCalendar (ics) file generator for node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow DTSTAMP to be set like any other event attribute

dambaron opened this issue · comments

The DTSTAMP field is set using the default values for an event and uses the Date.now() method.

This behavior may lead to flaky UT when trying to perform assertions on the field value since it will change every time a test is run.

The workaround I currently use is to mock the system time through Jest but it would be much easier to allow setting this attribute.