Skip to content

Commit

Permalink
Format timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane committed Jul 8, 2024
1 parent 6decaad commit fa19199
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45785,9 +45785,14 @@ function createSummary(inputs, steps, moduleNames) {
message(steps.lint),
message(steps.breaking),
`<a href="${lib_github.context.serverUrl}/${lib_github.context.repo.owner}/${lib_github.context.repo.repo}/actions/runs/${lib_github.context.runId}">view</a>`,
new Date().toLocaleString("en-US", {
timeZone: "UTC",
new Date().toLocaleString("en-GB", {
day: "numeric",
month: "short",
year: "numeric",
hour: "numeric",
minute: "numeric",
hour12: true,
timeZone: "UTC",
}),
],
];
Expand Down
9 changes: 7 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,14 @@ function createSummary(
message(steps.lint),
message(steps.breaking),
`<a href="${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}">view</a>`,
new Date().toLocaleString("en-US", {
timeZone: "UTC",
new Date().toLocaleString("en-GB", {
day: "numeric",
month: "short",
year: "numeric",
hour: "numeric",
minute: "numeric",
hour12: true,
timeZone: "UTC",
}),
],
];
Expand Down

0 comments on commit fa19199

Please sign in to comment.