Skip to content

Commit

Permalink
Fix date formatting (#134)
Browse files Browse the repository at this point in the history
I must either have misread the date-fns formatting syntax or confused it with
some other date formatting library while making the functionality. This should
fix it though, according to the formatting documentation at:
https://date-fns.org/v2.29.1/docs/format.
  • Loading branch information
Tenzer authored Jul 25, 2022
1 parent 5b8e7ba commit ccfa092
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/formatting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function getSlackFormat(commits: Commit[], since: string, until: string,
text: {
type: 'mrkdwn',
text: pupa(slackTemplate, {
date: formatInTimeZone(now, 'UTC', 'YYYY-MM-DD'),
date: formatInTimeZone(now, 'UTC', 'yyyy-MM-dd'),
since: {
full: since,
short: getShortRef(since)
Expand Down

0 comments on commit ccfa092

Please sign in to comment.