Skip to content
Snippets Groups Projects
Commit 44712d35 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Task #9607: timezone utc

parent 6e9b855f
No related branches found
No related tags found
No related merge requests found
...@@ -92,6 +92,10 @@ class RATaskStatusChangedListener(RABusListener): ...@@ -92,6 +92,10 @@ class RATaskStatusChangedListener(RABusListener):
__all__ = ["RATaskStatusChangedListener"] __all__ = ["RATaskStatusChangedListener"]
def main(): def main():
# make sure we run in UTC timezone
import os
os.environ['TZ'] = 'UTC'
from optparse import OptionParser from optparse import OptionParser
from lofar.messaging import setQpidLogLevel from lofar.messaging import setQpidLogLevel
from lofar.common.util import waitForInterrupt from lofar.common.util import waitForInterrupt
......
...@@ -175,6 +175,10 @@ class RADBPGListener(PostgresListener): ...@@ -175,6 +175,10 @@ class RADBPGListener(PostgresListener):
logger.error(str(e)) logger.error(str(e))
def main(): def main():
# make sure we run in UTC timezone
import os
os.environ['TZ'] = 'UTC'
# Check the invocation arguments # Check the invocation arguments
parser = OptionParser("%prog [options]", parser = OptionParser("%prog [options]",
description='runs the radb postgres listener which listens to changes on some tables in the radb and publishes the changes as notifications on the bus.') description='runs the radb postgres listener which listens to changes on some tables in the radb and publishes the changes as notifications on the bus.')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment