tango-app-api-trax 3.4.1-alpha-8 → 3.4.1-alpha-10

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.4.1-alpha-8",
3
+ "version": "3.4.1-alpha-10",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1469,8 +1469,9 @@ export const updateConfigurev1 =async ( req, res ) => {
1469
1469
  return res.sendError( 'no data found', 204 );
1470
1470
  }
1471
1471
 
1472
- let currentDate = dayjs().format( 'HH:mm:ss' );
1473
- currentDate = dayjs.utc( currentDate, 'HH:mm:ss' ).format();
1472
+ let currentDate = dayjs().tz( inputBody.timeZone ).format();
1473
+ console.log( dayjs().tz( 'Asia/Kolkata' ).format() );
1474
+ console.log( currentDate, 'date' );
1474
1475
  let updatedscheduleEndTimeISO = dayjs.utc( inputBody?.checkListDetails?.scheduleEndTime, 'hh:mm A' ).format( 'HH:mm:ss' );
1475
1476
  let newUpdatedDate = dayjs.utc( updatedscheduleEndTimeISO, 'HH:mm:ss' ).format();
1476
1477