mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
Fix timezones in recordings date times.
This commit is contained in:
parent
9e4be2c6c2
commit
88bb6d8366
2 changed files with 7 additions and 4 deletions
|
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Publish presence indicator synchronized on default account.
|
||||
- Remove from GUI a bad account created from Assistant.
|
||||
- Synchronize contacts presence status.
|
||||
- Timezones in recordings date times.
|
||||
|
||||
### Changed
|
||||
- SDK Updated to 5.4.41
|
||||
|
|
|
|||
|
|
@ -1397,7 +1397,7 @@ QString CallModel::generateSavedFilename (const QString &from, const QString &to
|
|||
return QString(str).replace(regexp, "");
|
||||
};
|
||||
return QStringLiteral("%1_%2_%3")
|
||||
.arg(QDateTime::currentDateTime().toString("yyyy-MM-dd_hh-mm-ss"))
|
||||
.arg(QDateTime::currentDateTimeUtc().toString("yyyy-MM-dd_hh-mm-ss"))
|
||||
.arg(escape(from))
|
||||
.arg(escape(to));
|
||||
}
|
||||
|
|
@ -1412,9 +1412,11 @@ QStringList CallModel::splitSavedFilename(const QString& filename){
|
|||
|
||||
QDateTime CallModel::getDateTimeSavedFilename(const QString& filename){
|
||||
auto fields = splitSavedFilename(filename);
|
||||
if(fields.size() > 1)
|
||||
return QDateTime::fromString(fields[0] + "_" +fields[1], "yyyy-MM-dd_hh-mm-ss");
|
||||
else
|
||||
if(fields.size() > 1) {
|
||||
QDateTime t = QDateTime::fromString(fields[0] + "_" +fields[1], "yyyy-MM-dd_hh-mm-ss");
|
||||
t.setTimeSpec(Qt::UTC);
|
||||
return t;
|
||||
}else
|
||||
return QDateTime();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue