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):
logger.info("Result sent")
def main():
# make sure we run in UTC timezone
import os
os.environ['TZ'] = 'UTC'
import logging
import sys
from optparse import OptionParser
......
......@@ -74,6 +74,10 @@ class SpecifiedTaskListener(RATaskSpecifiedBusListener):
__all__ = ["SpecifiedTaskListener"]
def main():
# make sure we run in UTC timezone
import os
os.environ['TZ'] = 'UTC'
from optparse import OptionParser
from lofar.messaging import setQpidLogLevel
from lofar.common.util import waitForInterrupt
......
......@@ -124,6 +124,10 @@ def createService(busname=DEFAULT_BUSNAME, servicename=DEFAULT_SERVICENAME, brok
verbose=True)
def main():
# make sure we run in UTC timezone
import os
os.environ['TZ'] = 'UTC'
from optparse import OptionParser
from lofar.messaging import setQpidLogLevel
from lofar.common.util import waitForInterrupt
......
......@@ -325,6 +325,10 @@ def createService(busname=DEFAULT_BUSNAME, servicename=DEFAULT_SERVICENAME, brok
verbose=verbose)
def main():
# make sure we run in UTC timezone
import os
os.environ['TZ'] = 'UTC'
# Check the invocation arguments
parser = OptionParser("%prog [options]",
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