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

Task #9607: run in UTC timezone

parent 0c78f4b2
Branches
Tags
No related merge requests found
...@@ -298,6 +298,10 @@ class RATaskSpecified(OTDBBusListener): ...@@ -298,6 +298,10 @@ class RATaskSpecified(OTDBBusListener):
logger.info("Result sent") logger.info("Result sent")
def main(): def main():
# make sure we run in UTC timezone
import os
os.environ['TZ'] = 'UTC'
import logging import logging
import sys import sys
from optparse import OptionParser from optparse import OptionParser
......
...@@ -74,6 +74,10 @@ class SpecifiedTaskListener(RATaskSpecifiedBusListener): ...@@ -74,6 +74,10 @@ class SpecifiedTaskListener(RATaskSpecifiedBusListener):
__all__ = ["SpecifiedTaskListener"] __all__ = ["SpecifiedTaskListener"]
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
......
...@@ -124,6 +124,10 @@ def createService(busname=DEFAULT_BUSNAME, servicename=DEFAULT_SERVICENAME, brok ...@@ -124,6 +124,10 @@ def createService(busname=DEFAULT_BUSNAME, servicename=DEFAULT_SERVICENAME, brok
verbose=True) verbose=True)
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
......
...@@ -325,6 +325,10 @@ def createService(busname=DEFAULT_BUSNAME, servicename=DEFAULT_SERVICENAME, brok ...@@ -325,6 +325,10 @@ def createService(busname=DEFAULT_BUSNAME, servicename=DEFAULT_SERVICENAME, brok
verbose=verbose) verbose=verbose)
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 resourceassignment database service') description='runs the resourceassignment database service')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment