fix: avoid unscoped 'this' in static method
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 27 Mar 2023 21:26:26 +0000 (23:26 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 27 Mar 2023 21:26:26 +0000 (23:26 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ocpp/OCPPServiceUtils.ts

index 26b7a4ee5ccc4db42c48209eade339d08e2bf941..f7a5d61ceb772f23d4da6b7fc5e394848ca52d8f 100644 (file)
@@ -136,7 +136,7 @@ export class OCPPServiceUtils {
       if (obj[key] instanceof Date) {
         (obj as JsonObject)[key] = (obj[key] as Date).toISOString();
       } else if (obj[key] !== null && typeof obj[key] === 'object') {
-        this.convertDateToISOString<T>(obj[key] as T);
+        OCPPServiceUtils.convertDateToISOString<T>(obj[key] as T);
       }
     }
   }