Skip to content

DateTimeOffset.Now returns wrong time in JS #4305

@kerams

Description

@kerams
// Latest Fable 5 alpha
2025-12-20 18:56:43 +01:00

// fsi
> System.DateTimeOffset.Now.ToString ();;
val it: string = "20. 12. 2025 19:59:27 +01:00"

Likely culprit

https://github.com/fable-compiler/Fable/pull/4242/files#diff-feb31ab4f51de353ec66e48b22ae629418bf5424a64c5252f4251b33e7c25d82L155-L156

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions