Skip to content

Commit

Permalink
fix: date/time format for am/pm
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickHeneise committed Mar 31, 2023
1 parent 5e7ec4b commit 8ac2ec7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@actions/github": "^5.1.1",
"@octokit/auth-app": "^4.0.9",
"@octokit/rest": "^19.0.7",
"@zentered/issue-forms-body-parser": "^2.1.3",
"@zentered/issue-forms-body-parser": "^2.1.4",
"date-fns": "^2.29.3",
"date-fns-tz": "^2.0.0",
"gray-matter": "^4.0.3",
Expand Down
8 changes: 8 additions & 0 deletions test/realworld.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import github from '@actions/github'
import { fetchIssues, fetchIssues as fn } from '../src/fetch-issues.js'

const octokit = github.getOctokit(process.env.GITHUB_TOKEN)
const locationsFile = ''
const timeZone = 'Europe/Athens'
const events = await fetchIssues(octokit, locationsFile, timeZone)
console.log(JSON.stringify(events, null, 2))

0 comments on commit 8ac2ec7

Please sign in to comment.