[DeckShare] Format share expiry with the locale-aware short format

This commit is contained in:
Lukas Brübach 2026-09-18 23:57:24 +02:00
parent 9bf9d9824b
commit 0cd900fc60

View file

@ -2,6 +2,7 @@
#include <QClipboard>
#include <QGuiApplication>
#include <QLocale>
#include <QTimeZone>
#include <libcockatrice/network/client/abstract/abstract_client.h>
#include <libcockatrice/protocol/pb/response.pb.h>
@ -24,7 +25,7 @@ QString copyShareLinkToClipboard(const QString &link)
QString formatShareExpiry(const QDateTime &expiry)
{
return expiry.toLocalTime().toString();
return QLocale().toString(expiry.toLocalTime(), QLocale::ShortFormat);
}
ShareResponse handleShareResponse(const AbstractClient *client, const Response &response)