tango-app-api-trax 3.3.1-hotfix-6 → 3.3.1-hotfix-8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-trax",
3
- "version": "3.3.1-hotfix-6",
3
+ "version": "3.3.1-hotfix-8",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1465,9 +1465,12 @@ export const updateConfigurev1 =async ( req, res ) => {
1465
1465
  if ( !checklistDetails ) {
1466
1466
  return res.sendError( 'no data found', 204 );
1467
1467
  }
1468
-
1469
- let currentDate = dayjs().format( 'HH:mm:ss' );
1470
- currentDate = dayjs.utc( currentDate, 'HH:mm:ss' ).format();
1468
+ let currentDate;
1469
+ if ( inputBody.timeZone ) {
1470
+ currentDate = dayjs().tz( inputBody.timeZone ).format();
1471
+ } else {
1472
+ currentDate = dayjs().format();
1473
+ }
1471
1474
  let updatedscheduleEndTimeISO = dayjs.utc( inputBody?.checkListDetails?.scheduleEndTime, 'hh:mm A' ).format( 'HH:mm:ss' );
1472
1475
  let newUpdatedDate = dayjs.utc( updatedscheduleEndTimeISO, 'HH:mm:ss' ).format();
1473
1476