mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
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:
@@ -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'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user