Skip to content

Commit

Permalink
prepare 8.2.1 release (#229)
Browse files Browse the repository at this point in the history
## [8.2.1] - 2023-10-20
### Fixed:
- Replace deprecated `utcfromtimestamp` usage.

---------

Co-authored-by: Robert J. Neal <rneal@launchdarkly.com>
Co-authored-by: Robert J. Neal <robertjneal@users.noreply.github.com>
Co-authored-by: LaunchDarklyCI <dev@launchdarkly.com>
Co-authored-by: Eli Bishop <eli@launchdarkly.com>
Co-authored-by: Ben Woskow <48036130+bwoskow-ld@users.noreply.github.com>
Co-authored-by: Ember Stevens <ember.stevens@launchdarkly.com>
Co-authored-by: ember-stevens <79482775+ember-stevens@users.noreply.github.com>
Co-authored-by: Matthew M. Keeler <keelerm84@gmail.com>
Co-authored-by: charukiewicz <charukiewicz@protonmail.com>
Co-authored-by: LaunchDarklyReleaseBot <launchdarklyreleasebot@launchdarkly.com>
Co-authored-by: Christian Charukiewicz <christian@foxhound.systems>
Co-authored-by: Matthew M. Keeler <mkeeler@launchdarkly.com>
Co-authored-by: Ben Woskow <bwoskow@launchdarkly.com>
Co-authored-by: Gavin Whelan <gwhelan@launchdarkly.com>
Co-authored-by: Elliot <35050275+Apache-HB@users.noreply.github.com>
Co-authored-by: Gabor Angeli <gabor@squareup.com>
Co-authored-by: Elliot <apachehaisley@gmail.com>
Co-authored-by: LaunchDarklyCI <LaunchDarklyCI@users.noreply.github.com>
Co-authored-by: hroederld <hroeder@launchdarkly.com>
Co-authored-by: Louis Chan <lchan@launchdarkly.com>
Co-authored-by: prpnmac <95777763+prpnmac@users.noreply.github.com>
Co-authored-by: Louis Chan <91093020+louis-launchdarkly@users.noreply.github.com>
Co-authored-by: Daniel Fritz <dfritz@indigoag.com>
  • Loading branch information
24 people committed Oct 23, 2023
1 parent b6cfd70 commit 90aff92
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ldclient/impl/model/value_parsing.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import re
from re import Pattern
from semver import VersionInfo
from datetime import tzinfo, timedelta, datetime
from datetime import tzinfo, timedelta, datetime, timezone
from numbers import Number
from typing import Any, Optional

import pyrfc3339

_ZERO = timedelta(0)

# A UTC class.

# A UTC class.
class _UTC(tzinfo):
"""UTC"""

Expand All @@ -23,7 +23,8 @@ def tzname(self, dt):
def dst(self, dt):
return _ZERO

_epoch = datetime.utcfromtimestamp(0).replace(tzinfo=_UTC())

_epoch = datetime.fromtimestamp(0, timezone.utc)


def is_number(input: Any) -> bool:
Expand Down

0 comments on commit 90aff92

Please sign in to comment.