i have UTC timestamps in my SQLite database. when i try to get one of them with a SELECT QSqlQuery and QSqlQuery::value(), it returns a QVariant. if i do QVariant::toDateTime(), the resulting QDateTime will contain a local timestamp instead of a UTC one. how can i get a QDateTime without that needless adjustment?
Aucun commentaire:
Enregistrer un commentaire