Skip to content

Commit

Permalink
docs QLatin1Char
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Nov 12, 2022
1 parent 6b6b192 commit fdb1c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tinyorm/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ If you need to customize the format of your model's timestamps, set the private

You can set the `u_dateFormat` to `U` if you want to store dates in the database as unix timestamps:

QString u_dateFormat {QChar('U')};
QString u_dateFormat {QLatin1Char('U')};

In this case __all__ date attributes set in the `u_dates` will be handled as unix timestamps, so also the `created_at` and `updated_at` timestamp attributes.

Expand Down

0 comments on commit fdb1c4c

Please sign in to comment.