Skip to content

Commit

Permalink
log session start time with time zone abbreviation
Browse files Browse the repository at this point in the history
  • Loading branch information
CABALLERO GINI Cristhian Salvador committed Oct 1, 2024
1 parent 04ee795 commit b963225
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions server/src/lib/session-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,14 @@ export async function createSession(sessionProps: TestSessionProperties): Promis
}

async function startTestSession() {
log.info(helpers.format('Session {0} with label "{1}" started at {2} UTC',
var tzname = moment.tz.guess();
var zonename = moment.tz(tzname).zoneAbbr();
log.info(helpers.format('Session {0} with label "{1}" started at {2} {3}',
sessionId,
sessionProps.sessionLabel,
moment().utc().format('YYYY-MM-DD HH:mm:ss')));
moment().format('YYYY-MM-DD HH:mm:ss'),
zonename
));

await db.updateSession(sessionId, {
actors: sessionActors,
Expand Down

0 comments on commit b963225

Please sign in to comment.