Skip to content

[libc] comparing with glibc for ctime, llvm implementation has an offset by 1 hour #109892

@zimirza

Description

@zimirza

In main branch, not released version:

For t=0, glibc's ctime returns Thu Jan 1 01:00:00 1970\n, while llvm's ctime returns Thu Jan 1 00:00:00 1970\n.

For t=2147483647, glibc's ctime returns Tue Jan 19 04:14:07 2038\n, while llvm's ctime returns Tue Jan 19 03:14:07 2038\n.

It might be better to be consistent with glibc's implementation for compatibility reasons.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    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