Skip to content

QDateTime UTC persistence issue #17

@ahsanullah-8bit

Description

@ahsanullah-8bit

Sup!

I've been trying to use ODB in a Qt 6.9 project. Upon taking a look at the source code of the Qt profile, it seems the QDateTime is converted back and forth using a custom format string yyyy-MM-ddTHH:mm:ss.zzz at line 64 and 45.

I see, you guys might be trying to make it work with the built-in SQLite methods, which doesn't append the suffix Z. But the problem here is, loading the time using that custom format string defaults the timeSpec to Qt::LocalTime. You persist a QDateTime in Qt::UTC and it reads it back as Qt::LocalTime. Is there a fix for this or should I do something myself?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions