def ensure_timezone(dateTime,timeZone=None):
if is_aware(dateTime) and not getattr(settings,'<STR_LIT>',False):<EOL><INDENT>return make_naive(dateTime,timezone=timeZone)<EOL><DEDENT>if is_naive(dateTime) and getattr(settings,'<STR_LIT>',False):<EOL><INDENT>return make_aware(dateTime,timezone=timeZone)<EOL><DEDENT>return dateTime<EOL>
Since this project is designed to be used in both time-zone aware
and naive environments, this utility just returns a datetime as either
aware or naive depending on whether time zone support is enabled.