Skip to content

Homogeneize Date usages

Nicolas Frandeboeuf requested to merge nicofrand/kresus:avoidMoment into master

The first commit replaces the use of timestamps in search with Date instances, to reduce the number of different formats we use to refer to dates (dates, date strings, moment instances, timestamps).

The second removes some unnecessary moment calls when I believe the native call is as short and we don't have to worry about how moment would do it. Also moment is quite heavy but we could consider using alternatives https://github.com/iamkun/dayjs for some remaining uses (adding/substracting days quickly and format dates mainly).

Merge request reports