MCPcopy
hub / github.com/jipegit/OSXAuditor / GetAuditedSystemTimezone

Function GetAuditedSystemTimezone

osxauditor.py:1224–1234  ·  view source on GitHub ↗

Return the current system timezone

()

Source from the content-addressed store, hash-verified

1222
1223
1224def GetAuditedSystemTimezone():
1225 ''' Return the current system timezone '''
1226
1227 Timezone = False
1228 try:
1229 Timezone = os.path.realpath(os.path.join(ROOT_PATH, 'etc/localtime'))
1230 Timezone = Timezone.split('/')
1231 except Exception as e:
1232 PrintAndLog(u'Cannot read the timezone' + str(e.args).decode('utf-8'), 'ERROR')
1233
1234 return Timezone[-2] + '/' + Timezone[-1]
1235
1236
1237def ParseSystemlogFile(SystemLogPath, Year, Bzip2ed=False, Gziped=False):

Callers 1

MainFunction · 0.85

Calls 1

PrintAndLogFunction · 0.85

Tested by

no test coverage detected