diff --git a/sentry_sdk/utils.py b/sentry_sdk/utils.py index eeee118ed7..b9be3d8936 100644 --- a/sentry_sdk/utils.py +++ b/sentry_sdk/utils.py @@ -79,8 +79,6 @@ R = TypeVar("R") -epoch = datetime(1970, 1, 1) - # The logger is created here but initialized in the debug support module logger = logging.getLogger("sentry_sdk.errors") @@ -248,10 +246,6 @@ def capture_internal_exception(exc_info: "ExcInfo") -> None: logger.error("Internal error in sentry_sdk", exc_info=exc_info) -def to_timestamp(value: "datetime") -> float: - return (value - epoch).total_seconds() - - def format_timestamp(value: "datetime") -> str: """Formats a timestamp in RFC 3339 format.