Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: remove pytz dependency (#78)
  • Loading branch information
busunkim96 committed Aug 13, 2021
1 parent efd3fc9 commit 89e51b3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions google/cloud/runtimeconfig/variable.py
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 89e51b3

Please sign in to comment.