mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-01-06 10:59:31 -06:00
docs used currentDateTimeUtc()
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()},
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user