mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Make sure TimeInfo only contains UTC values.
This commit is contained in:
parent
7568582b05
commit
6234065898
@ -69,21 +69,25 @@ QDateTime TimeInfo::locationChanged() const
|
||||
|
||||
void TimeInfo::setLastModificationTime(const QDateTime& dateTime)
|
||||
{
|
||||
Q_ASSERT(dateTime.timeSpec() == Qt::UTC);
|
||||
m_lastModificationTime = dateTime;
|
||||
}
|
||||
|
||||
void TimeInfo::setCreationTime(const QDateTime& dateTime)
|
||||
{
|
||||
Q_ASSERT(dateTime.timeSpec() == Qt::UTC);
|
||||
m_creationTime = dateTime;
|
||||
}
|
||||
|
||||
void TimeInfo::setLastAccessTime(const QDateTime& dateTime)
|
||||
{
|
||||
Q_ASSERT(dateTime.timeSpec() == Qt::UTC);
|
||||
m_lastAccessTime = dateTime;
|
||||
}
|
||||
|
||||
void TimeInfo::setExpiryTime(const QDateTime& dateTime)
|
||||
{
|
||||
Q_ASSERT(dateTime.timeSpec() == Qt::UTC);
|
||||
m_expiryTime = dateTime;
|
||||
}
|
||||
|
||||
@ -99,5 +103,6 @@ void TimeInfo::setUsageCount(int count)
|
||||
|
||||
void TimeInfo::setLocationChanged(const QDateTime& dateTime)
|
||||
{
|
||||
Q_ASSERT(dateTime.timeSpec() == Qt::UTC);
|
||||
m_locationChanged = dateTime;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user