github-tools / github-release-notes

Node module to create a release or a changelog from a tag and uses issues or commits to creating the release notes.
https://github-tools.github.io/github-release-notes/
GNU General Public License v3.0
880 stars 325 forks source link

Changelog date is always 01/01/1970 #277

Open papanito opened 4 years ago

papanito commented 4 years ago

When I generate the changelog the date is always 01/01/1970

Version: 0.17.3

faloi commented 4 years ago

Almost same here, but the date is 31/12/1969 in my case (the previous day). Seems like a date-parsing issue, because that date is the Unix epoch.

I'm trying to generate a CHANGELOG from scratch for a project that has a lot of tags. This is what I run on my terminal:

> node_modules/github-release-notes/bin/gren.js changelog --generate --override --tags=all

🤖  - Generate changelog file:
===================================
✔ Releases found: 0
✔ Tags found: 0.14.0, 0.3.1, 0.2.12, 0.2.11, 0.2.10, 0.2.9, 0.2.8, 0.2.7, 0.2.6, 0.2.5, 0.2.4, 0.2.3, 0.2.2, 0.2.1, 0.2.0, 0.1.2, 0.1.1, 0.1.0, 0.0.5, 0.0.4, 0.0.3, 0.0.2, 0.0.1, 0.34.0, 0.33.0, 0.32.1, 0.32.0, 0.31.0, 0.30.1, 0.30.0, 0.29.1, 0.29.0, 0.28.1, 0.28.0, 0.27.1, 0.27.0, 0.26.1, 0.26.0, 0.25.4, 0.25.3, 0.25.2, 0.25.1, 0.25.0, 0.24.3, 0.24.2, 0.24.1, 0.24.0, 0.23.0, 0.22.0, 0.21.1, 0.21.0, 0.20.1, 0.20.0, 0.19.2, 0.19.1, 0.19.0, 0.18.1, 0.18.0, 0.17.0, 0.16.0, 0.15.0, 0.3.0, 0.13.1, 0.13.0, 0.12.0, 0.11.2, 0.11.1, 0.11.0, 0.10.3, 0.10.2, 0.10.1, 0.10.0, 0.9.1, 0.9.0, 0.8.6, 0.8.5, 0.8.4, 0.8.3, 0.8.2, 0.8.1, 0.8.0, 0.7.0, 0.6.11, 0.6.10, 0.6.9, 0.6.8, 0.6.7, 0.6.6, 0.6.5, 0.6.4, 0.6.3, 0.6.2, 0.6.1, 0.6.0, 0.5.19, 0.5.18, 0.5.17, 0.5.16, 0.5.15, 0.5.14, 0.5.13, 0.5.12, 0.5.11, 0.5.10, 0.5.9, 0.5.8, 0.5.7, 0.5.6, 0.5.5, 0.5.4, 0.5.3, 0.5.2, 0.5.1, 0.5.0, 0.4.4, 0.4.2, 0.4.1, 0.4.0, 0.3.5, 0.3.4, 0.3.3, 0.3.2
â ¼ Get commits between 31/12/1969 and 31/12/1969
yansheng836 commented 1 year ago

For me, the lastest is right,other is 01/01/1970

image

version

$ gren -v
0.17.3