import pytz
from datetime import datetime


def get_creation_date(obj):
    """Return object's creation date. """
    if obj.creation_date is None:
        return pytz.UTC.localize(datetime.fromtimestamp(0))
    return obj.creation_date