Skip to content
Permalink
Browse files
fix: remove pytz dependency (#78)
  • Loading branch information
busunkim96 committed Aug 13, 2021
1 parent efd3fc9 commit 89e51b3b3bfce9c44ecd1fa214f393a3b6a23bb5
Showing 1 changed file with 1 addition and 3 deletions.
@@ -38,8 +38,6 @@
import base64
import datetime

import pytz

from google.api_core import datetime_helpers
from google.cloud.exceptions import Conflict, NotFound
from google.cloud.runtimeconfig._helpers import variable_name_from_full_name
@@ -218,7 +216,7 @@ def update_time(self):
value = DatetimeNS.from_rfc3339(value)
naive = value.tzinfo is None or value.tzinfo.utcoffset(value) is None
if naive:
value = pytz.utc.localize(value)
value = value.astimezone(tz=datetime.timezone.utc)
return value

def _require_client(self, client):

0 comments on commit 89e51b3

Please sign in to comment.