docs used currentDateTimeUtc()

This commit is contained in:
silverqx
2022-11-08 13:42:34 +01:00
parent 5a470df9c8
commit c650aacc51
2 changed files with 2 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ The `update` method should be used to update existing records in the database. T
auto [affected, query] = DB::update(
"update users set updated_at = ? where name = ?",
{QDateTime::currentDateTime(), "Anita"}
{QDateTime::currentDateTimeUtc(), "Anita"}
);
if (!affected)

View File

@@ -340,7 +340,7 @@ By default, a newly instantiated model instance will not contain any attribute v
inline static const QVector<AttributeItem> u_attributes {
{"delayed", false},
{"progress", 0},
{"added_on", QDateTime::currentDateTime()},
{"added_on", QDateTime::currentDateTimeUtc()},
};
};