@@ -11,8 +11,6 @@ const entityTypesHelper = require(MODULES_BASE_PATH + "/entityTypes/helper");
1111const entitiesHelper = require ( MODULES_BASE_PATH + "/entities/helper" ) ;
1212const userRolesHelper = require ( MODULES_BASE_PATH + "/user-roles/helper" ) ;
1313const userService = require ( ROOT_PATH + "/generics/services/users" ) ;
14- const timeZoneDifference =
15- process . env . TIMEZONE_DIFFRENECE_BETWEEN_LOCAL_TIME_AND_UTC ;
1614/**
1715 * ProgramsHelper
1816 * @class
@@ -112,13 +110,13 @@ module.exports = class ProgramsHelper {
112110 if ( data . hasOwnProperty ( "endDate" ) ) {
113111 data . endDate = gen . utils . getEndDate (
114112 data . endDate ,
115- timeZoneDifference
113+ process . env . TIMEZONE_DIFFRENECE_BETWEEN_LOCAL_TIME_AND_UTC
116114 ) ;
117115 }
118116 if ( data . hasOwnProperty ( "startDate" ) ) {
119117 data . startDate = gen . utils . getStartDate (
120118 data . startDate ,
121- timeZoneDifference
119+ process . env . TIMEZONE_DIFFRENECE_BETWEEN_LOCAL_TIME_AND_UTC
122120 ) ;
123121 }
124122 }
@@ -138,7 +136,7 @@ module.exports = class ProgramsHelper {
138136 } ;
139137 }
140138
141- if ( data . scope ) {
139+ if ( data . scope && false ) {
142140
143141 let programScopeUpdated = await this . setScope (
144142 program . _id ,
@@ -366,13 +364,13 @@ module.exports = class ProgramsHelper {
366364 if ( data . hasOwnProperty ( "endDate" ) ) {
367365 data . endDate = gen . utils . getEndDate (
368366 data . endDate ,
369- timeZoneDifference
367+ process . env . TIMEZONE_DIFFRENECE_BETWEEN_LOCAL_TIME_AND_UTC
370368 ) ;
371369 }
372370 if ( data . hasOwnProperty ( "startDate" ) ) {
373371 data . startDate = gen . utils . getStartDate (
374372 data . startDate ,
375- timeZoneDifference
373+ process . env . TIMEZONE_DIFFRENECE_BETWEEN_LOCAL_TIME_AND_UTC
376374 ) ;
377375 }
378376 }
0 commit comments