mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 08:34:08 +03:00
Fix date in ActivityWidget and remove unnecessary string conversion
The local date and time value was converted into a string, just to be converted into another string, to be converted to a value once again, returning zero as the result. This caused the widget to always display "now". Looks like this was a simply copy and paste mistake from this line in ActivityListModel::slotActivitiesReceived: a._dateTime = QDateTime::fromString(json.value("date").toString(), Qt::ISODate); Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
parent
9b034a2eb0
commit
e07859fb3c
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ void ActivityWidget::slotItemCompleted(const QString &folder, const SyncFileItem
|
|||
Activity activity;
|
||||
activity._type = Activity::SyncFileItemType; //client activity
|
||||
activity._status = item->_status;
|
||||
activity._dateTime = QDateTime::fromString(QDateTime::currentDateTime().toString(), Qt::ISODate);
|
||||
activity._dateTime = QDateTime::currentDateTime();
|
||||
activity._message = item->_originalFile;
|
||||
activity._link = folderInstance->accountState()->account()->url();
|
||||
activity._accName = folderInstance->accountState()->account()->displayName();
|
||||
|
|
Loading…
Reference in a new issue