diff --git a/docs/database/getting-started.mdx b/docs/database/getting-started.mdx index ef9414ee9..88da1102d 100644 --- a/docs/database/getting-started.mdx +++ b/docs/database/getting-started.mdx @@ -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) diff --git a/docs/tinyorm/getting-started.mdx b/docs/tinyorm/getting-started.mdx index db994db69..2457aa4a3 100644 --- a/docs/tinyorm/getting-started.mdx +++ b/docs/tinyorm/getting-started.mdx @@ -340,7 +340,7 @@ By default, a newly instantiated model instance will not contain any attribute v inline static const QVector u_attributes { {"delayed", false}, {"progress", 0}, - {"added_on", QDateTime::currentDateTime()}, + {"added_on", QDateTime::currentDateTimeUtc()}, }; };