Return the current system timezone
()
| 1222 | |
| 1223 | |
| 1224 | def 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 | |
| 1237 | def ParseSystemlogFile(SystemLogPath, Year, Bzip2ed=False, Gziped=False): |