Skip to content

Commit

Permalink
feat(lib): add UTC string to date time
Browse files Browse the repository at this point in the history
  • Loading branch information
narekhovhannisyan committed May 3, 2024
1 parent fcf4aeb commit 965bfae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const listDependencies = async () => {
export const injectEnvironment = async (context: Context) => {
const dependencies = await listDependencies();
const info = await osInfo();
const dateTime = `${getProcessStartingTimestamp()} (UTC)`;

const contextWithExec: ContextWithExec = {
...context,
Expand All @@ -74,7 +75,7 @@ export const injectEnvironment = async (context: Context) => {
os: info.os,
'os-version': info['os-version'],
'node-version': process.versions.node,
'date-time': getProcessStartingTimestamp(),
'date-time': dateTime,
dependencies,
},
},
Expand Down

0 comments on commit 965bfae

Please sign in to comment.