tango-app-api-audit 3.6.48 → 3.6.50
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
|
@@ -1401,7 +1401,7 @@ function getISTDate( dateString ) {
|
|
|
1401
1401
|
// Get UTC time in milliseconds
|
|
1402
1402
|
const utc = dateObj.getTime() + ( dateObj.getTimezoneOffset() * 60000 );
|
|
1403
1403
|
// IST offset is +5:30, which is 19800000 ms
|
|
1404
|
-
return new Date( utc
|
|
1404
|
+
return new Date( utc - ( 5.5 * 60 * 60 * 1000 ) );
|
|
1405
1405
|
// set at first to eod
|
|
1406
1406
|
}
|
|
1407
1407
|
|
|
@@ -1447,7 +1447,8 @@ export async function summaryList( req, res ) {
|
|
|
1447
1447
|
// If toDate is set to midnight (i.e., no time) OR is an ISO string at 00:00:00, set to end of day
|
|
1448
1448
|
const fromDateIST = getISTDate( fromDate );
|
|
1449
1449
|
const toDateIST = getISTDate( toDate );
|
|
1450
|
-
|
|
1450
|
+
logger.info( { fromDateIST, msg: '..............fromDateIST' } );
|
|
1451
|
+
logger.info( { toDateIST, msg: '..............toDateIST' } );
|
|
1451
1452
|
|
|
1452
1453
|
filter= [
|
|
1453
1454
|
{
|