[X2Go-Commits] [x2goclient] 01/02: src/onmainwindow.cpp: fix session creation date/time display.
git-admin at x2go.org
git-admin at x2go.org
Sun Nov 28 05:34:43 CET 2021
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2goclient.
commit 95c3c7f2258eb6e14285101c8b506973ba6b84d4
Author: Mihai Moldovan <ionic at ionic.de>
Date: Sun Nov 28 04:52:08 2021 +0100
src/onmainwindow.cpp: fix session creation date/time display.
The data returned by the server was changed to an ISO-date-formatted one
in 2011, but that change was not carried over to the client.
We've had silly dates for more than 10 years and nobody noticed. Go
figure.
---
debian/changelog | 4 ++++
src/onmainwindow.cpp | 8 +++-----
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 48542ed..ceb63e0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -108,6 +108,10 @@ x2goclient (4.1.2.3-0x2go1) UNRELEASED; urgency=medium
old Qt4 SIGNAL/SLOT syntax and making sure to drop parameters on both
sides, so that the default slot parameter is used, which animates the
button for 150 ms.
+ - src/onmainwindow.cpp: fix session creation date/time display. The data
+ returned by the server was changed to an ISO-date-formatted one in 2011,
+ but that change was not carried over to the client. We've had silly
+ dates for more than 10 years and nobody noticed. Go figure.
* debian/control:
+ Move to debian/control.in.
* debian/control.in:
diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp
index 5d51c1c..2a7b2a2 100644
--- a/src/onmainwindow.cpp
+++ b/src/onmainwindow.cpp
@@ -3725,7 +3725,7 @@ void ONMainWindow::startDirectRDP()
resumingSession.sessionId += "_stRRDP_dp24";
resumingSession.display="RDP";
resumingSession.command="RDP";
- resumingSession.crTime=QDateTime::currentDateTime().toString("dd.MM.yy HH:mm:ss");
+ resumingSession.crTime=QDateTime::currentDateTime().toString(Qt::ISODate);
showSessionStatus();
if(brokerMode)
{
@@ -5777,7 +5777,7 @@ void ONMainWindow::slotRetResumeSess ( bool result,
}
resumingSession.server=host;
resumingSession.crTime=QDateTime::currentDateTime().toString (
- "dd.MM.yy HH:mm:ss" );
+ Qt::ISODate );
if ( managedMode )
{
//replace session data for future resuming
@@ -7169,9 +7169,7 @@ void ONMainWindow::setStatStatus ( QString status )
statusLabel->setText ( QString::null );
if ( resumingSession.sessionId!=QString::null )
{
- QString f="dd.MM.yy HH:mm:ss";
- QDateTime dt=QDateTime::fromString ( resumingSession.crTime,f );
- dt=dt.addYears ( 100 );
+ QDateTime dt=QDateTime::fromString ( resumingSession.crTime, Qt::ISODate );
tstr=dt.toString();
}
if ( !embedMode || !proxyWinEmbedded )
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
More information about the x2go-commits
mailing list