Bump notifications-utils to 30.7.0

Bumped the notifications-utils version. The `gmt_timezones` function in
this repo and the `utc_string_to_aware_gmt_datetime` in
notifications-utils are the same, so have updated the code to always use
the version in utils.
This commit is contained in:
Katie Smith
2018-11-26 14:43:42 +00:00
parent 1cc2a529d5
commit c48f54aba4
4 changed files with 17 additions and 23 deletions

View File

@@ -12,7 +12,6 @@ from urllib.parse import urlparse
import ago
import dateutil
import pyexcel
import pytz
import yaml
from flask import (
Markup,
@@ -355,12 +354,6 @@ def email_or_sms_not_enabled(template_type, permissions):
return (template_type in ['email', 'sms']) and (template_type not in permissions)
def gmt_timezones(date):
date = dateutil.parser.parse(date)
forced_utc = date.replace(tzinfo=pytz.utc)
return forced_utc.astimezone(pytz.timezone('Europe/London'))
def get_cdn_domain():
parsed_uri = urlparse(current_app.config['ADMIN_BASE_URL'])