Skip to content

Combined behavior of datetime.datetime.timestamp() and datetime.datetime.utcnow() on non-UTC timezoned machines #84151

Description

@YiLuan
mannequin
BPO 39970
Nosy @abalkin, @pganssle
Superseder
  • bpo-33293: Using datetime.datetime.utcnow().timestamp() in Python3.6.0 can't get correct UTC timestamp.
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2020-03-15.16:04:37.438>
    created_at = <Date 2020-03-15.15:01:14.193>
    labels = ['3.7', 'type-bug', 'library']
    title = 'Combined behavior of datetime.datetime.timestamp() and datetime.datetime.utcnow() on non-UTC timezoned machines'
    updated_at = <Date 2020-03-17.09:12:56.655>
    user = 'https://bugs.python.org/YiLuan'

    bugs.python.org fields:

    activity = <Date 2020-03-17.09:12:56.655>
    actor = 'Yi Luan'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-03-15.16:04:37.438>
    closer = 'p-ganssle'
    components = ['Library (Lib)']
    creation = <Date 2020-03-15.15:01:14.193>
    creator = 'Yi Luan'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 39970
    keywords = []
    message_count = 8.0
    messages = ['364240', '364243', '364244', '364245', '364282', '364283', '364323', '364398']
    nosy_count = 3.0
    nosy_names = ['belopolsky', 'p-ganssle', 'Yi Luan']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '33293'
    type = 'behavior'
    url = 'https://bugs.python.org/issue39970'
    versions = ['Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Fields

      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions