Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit c790ee4

Browse files
author
James Cori
committed
Fixing date logging
1 parent 756cf19 commit c790ee4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/services/timelineService.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ const QUERY_UPDATE_TIMELINE_NOTIFICATIONS = 'UPDATE project_info SET value = "On
3030
* @param {String} dateStr the date in string format
3131
*/
3232
function formatDate (dateStr) {
33-
logger.info(`Formatting date ${dateStr}`)
34-
return momentTZ.tz(dateStr, config.TIMEZONE).format('YYYY-MM-DD HH:mm:ss')
33+
const date = momentTZ.tz(dateStr, config.TIMEZONE).format('YYYY-MM-DD HH:mm:ss')
34+
logger.info(`Formatting date ${dateStr} New Date ${date}`)
35+
return date
3536
}
3637

3738
/**

0 commit comments

Comments
 (0)