Skip to content

Commit 5006040

Browse files
onefloidMariusWirtz
authored andcommitted
Fix: Replace missing method with function import
1 parent f2770c6 commit 5006040

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

TM1py/Services/AuditLogService.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from TM1py.Services.RestService import RestService
99
from TM1py.Utils import verify_version, deprecated_in_version, odata_track_changes_header, require_data_admin, \
1010
format_url, \
11-
require_version, require_ops_admin
11+
require_version, require_ops_admin, utc_localize_time
1212
from TM1py.Services.ConfigurationService import ConfigurationService
1313

1414

@@ -74,13 +74,13 @@ def get_entries(self, user: str = None, object_type: str = None, object_name: st
7474
if since:
7575
# If since doesn't have tz information, UTC is assumed
7676
if not since.tzinfo:
77-
since = self.utc_localize_time(since)
77+
since = utc_localize_time(since)
7878
log_filters.append(format_url(
7979
"TimeStamp ge {}", since.strftime("%Y-%m-%dT%H:%M:%SZ")))
8080
if until:
8181
# If until doesn't have tz information, UTC is assumed
8282
if not until.tzinfo:
83-
until = self.utc_localize_time(until)
83+
until = utc_localize_time(until)
8484
log_filters.append(format_url(
8585
"TimeStamp le {}", until.strftime("%Y-%m-%dT%H:%M:%SZ")))
8686
url += "&$filter={}".format(" and ".join(log_filters))
@@ -93,4 +93,4 @@ def get_entries(self, user: str = None, object_type: str = None, object_name: st
9393
@require_ops_admin
9494
def activate(self):
9595
config = {'Administration': {'AuditLog': {'Enable': True}}}
96-
self.configuration.update_static(config)
96+
self.configuration.update_static(config)

0 commit comments

Comments
 (0)