# Path: ob2/util/time.py
# def now():
#     """Gets the current datetime (with timezone) as an object."""
#     timezone_obj = pytz.timezone(config.timezone)
#     return datetime.utcnow().replace(tzinfo=pytz.utc).astimezone(timezone_obj)


from ob2.util.time import now


class Job(object):
    def __init__(self, build_name, source, trigger):
        """
        Creates a new dockergrader job to be added to the queue.

        """
        self.build_name = build_name
        self.source = source
        self.trigger = trigger

# Path: ob2/util/time.py
# def now():
#     """Gets the current datetime (with timezone) as an object."""
#     timezone_obj = pytz.timezone(config.timezone)
#     return datetime.utcnow().replace(tzinfo=pytz.utc).astimezone(timezone_obj)


# Path: ob2/dockergrader/job.py
from ob2.util.time import now



class Job(object):
    def __init__(self, build_name, source, trigger):
        """
        Creates a new dockergrader job to be added to the queue.

        """
        self.build_name = build_name
        self.source = source
        self.trigger = trigger

        self.updated = now()