aboutsummaryrefslogtreecommitdiffstats
path: root/src/checks/level0/README-qdatetime-utc.md
blob: 1741e78a57d19f8ad355f7d5b9090dd3d5b9a260 (plain)
1
2
3
4
5
6
7
8
# qdatetime-utc

Finds calls to `QDateTime::currentDateTime()` which should be replaced by
`QDateTime::currentDateTimeUTC()` in order to avoid expensive timezone code paths.

The two supported cases are:
- QDateTime::currentDateTime().toTime_t() -> QDateTime::currentDateTimeUtc().toTime_t()
- QDateTime::currentDateTime().toUTC() -> QDateTime::currentDateTimeUtc()