Commit a797fa86 authored by Sandro Knauß's avatar Sandro Knauß

set locale to en_US for tests to have a popper short DateTimeFormat

parent cff6bce3
......@@ -22,15 +22,17 @@
#include <QStandardPaths>
#include <QFile>
#include <QDir>
#include <QFile>
#include <QIcon>
#include <QLocale>
void MessageViewer::Test::setupEnv()
{
setenv("LC_ALL", "C", 1);
setenv("KDEHOME", QFile::encodeName(QDir::homePath() + QString::fromLatin1("/.qttest")), 1);
QStandardPaths::setTestModeEnabled(true);
QIcon::setThemeName(QStringLiteral("oxygen"));
QLocale::setDefault(QLocale(QStringLiteral("en_US")));
}
......@@ -992,7 +992,7 @@ public:
block.setProperty("technicalProblem", metaData.technicalProblem);
block.setProperty("keyId", metaData.keyId);
if (metaData.creationTime.isValid()) { //should be handled inside grantlee but currently not possible see: https://bugs.kde.org/363475
block.setProperty("creationTime", QLocale::system().toString(metaData.creationTime, QLocale::ShortFormat));
block.setProperty("creationTime", QLocale().toString(metaData.creationTime, QLocale::ShortFormat));
}
block.setProperty("isGoodSignature", metaData.isGoodSignature);
block.setProperty("isSMIME", isSMIME);
......
......@@ -10,7 +10,7 @@
<td dir="ltr">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td rowspan="2">Message was signed on 21.12.15 15:46 with unknown key <a href="kmail:showCertificate#gpg ### OpenPGP ### E68031D299A6527C">0xE68031D299A6527C</a>.<br/>The validity of the signature cannot be verified.<br/>Status:<i>No public key to verify the signature</i></td>
<td rowspan="2">Message was signed on 12/21/15 3:46 PM with unknown key <a href="kmail:showCertificate#gpg ### OpenPGP ### E68031D299A6527C">0xE68031D299A6527C</a>.<br/>The validity of the signature cannot be verified.<br/>Status:<i>No public key to verify the signature</i></td>
<td align="right" valign="top" nowrap="nowrap">
<a href="kmail:hideSignatureDetails">Hide Details</a>
</td>
......
......@@ -12,7 +12,7 @@
<td dir="ltr">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td rowspan="2">Message was signed on 22.08.15 09:31 with unknown key <a href="kmail:showCertificate#gpg ### OpenPGP ### 7F96CCD64D12D247">0x7F96CCD64D12D247</a>.<br/>The validity of the signature cannot be verified.<br/>Status:<i>No public key to verify the signature</i></td>
<td rowspan="2">Message was signed on 8/22/15 9:31 AM with unknown key <a href="kmail:showCertificate#gpg ### OpenPGP ### 7F96CCD64D12D247">0x7F96CCD64D12D247</a>.<br/>The validity of the signature cannot be verified.<br/>Status:<i>No public key to verify the signature</i></td>
<td align="right" valign="top" nowrap="nowrap">
<a href="kmail:hideSignatureDetails">Hide Details</a>
</td>
......
......@@ -32,7 +32,7 @@
<td dir="ltr">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td rowspan="2">Message was signed on 08.04.13 09:51 with unknown key <a href="kmail:showCertificate#gpg ### OpenPGP ### D6B72EB1A7F1DB43">0xD6B72EB1A7F1DB43</a>.<br/>The validity of the signature cannot be verified.<br/>Status:<i>No public key to verify the signature</i></td>
<td rowspan="2">Message was signed on 4/8/13 9:51 AM with unknown key <a href="kmail:showCertificate#gpg ### OpenPGP ### D6B72EB1A7F1DB43">0xD6B72EB1A7F1DB43</a>.<br/>The validity of the signature cannot be verified.<br/>Status:<i>No public key to verify the signature</i></td>
<td align="right" valign="top" nowrap="nowrap">
<a href="kmail:hideSignatureDetails">Hide Details</a>
</td>
......
......@@ -12,7 +12,7 @@
<td dir="ltr">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td rowspan="2">Message was signed on 08.04.13 09:51 with unknown key <a href="kmail:showCertificate#gpg ### OpenPGP ### D6B72EB1A7F1DB43">0xD6B72EB1A7F1DB43</a>.<br/>The validity of the signature cannot be verified.<br/>Status:<i>No public key to verify the signature</i></td>
<td rowspan="2">Message was signed on 4/8/13 9:51 AM with unknown key <a href="kmail:showCertificate#gpg ### OpenPGP ### D6B72EB1A7F1DB43">0xD6B72EB1A7F1DB43</a>.<br/>The validity of the signature cannot be verified.<br/>Status:<i>No public key to verify the signature</i></td>
<td align="right" valign="top" nowrap="nowrap">
<a href="kmail:hideSignatureDetails">Hide Details</a>
</td>
......
......@@ -19,7 +19,7 @@
<td dir="ltr">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td rowspan="2">Message was signed by <a href="mailto:test%40example.com">CN=unittest cert,EMAIL=test@example.com,O=KDAB,C=US</a> on 10.01.13 15:48 with key <a href="kmail:showCertificate#gpgsm ### SMIME ### 4CC658E3212B49DC">0x4CC658E3212B49DC</a><br/>&nbsp;<br/>Status:<i>Good signature.</i><br/>&nbsp;<br/><u>Warning:</u> Sender's mail address is not stored in the <a href="kmail:showCertificate#gpgsm ### SMIME ### 4CC658E3212B49DC">certificate</a> used for signing.<br/>sender: <br/>stored: test@example.com</td>
<td rowspan="2">Message was signed by <a href="mailto:test%40example.com">CN=unittest cert,EMAIL=test@example.com,O=KDAB,C=US</a> on 1/10/13 3:48 PM with key <a href="kmail:showCertificate#gpgsm ### SMIME ### 4CC658E3212B49DC">0x4CC658E3212B49DC</a><br/>&nbsp;<br/>Status:<i>Good signature.</i><br/>&nbsp;<br/><u>Warning:</u> Sender's mail address is not stored in the <a href="kmail:showCertificate#gpgsm ### SMIME ### 4CC658E3212B49DC">certificate</a> used for signing.<br/>sender: <br/>stored: test@example.com</td>
<td align="right" valign="top" nowrap="nowrap">
<a href="kmail:hideSignatureDetails">Hide Details</a>
</td>
......
......@@ -10,7 +10,7 @@
<td dir="ltr">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td rowspan="2">Message was signed by <a href="mailto:test%40example.com">CN=unittest cert,EMAIL=test@example.com,O=KDAB,C=US</a> on 10.01.13 15:48 with key <a href="kmail:showCertificate#gpgsm ### SMIME ### 4CC658E3212B49DC">0x4CC658E3212B49DC</a><br/>&nbsp;<br/>Status:<i>Good signature.</i></td>
<td rowspan="2">Message was signed by <a href="mailto:test%40example.com">CN=unittest cert,EMAIL=test@example.com,O=KDAB,C=US</a> on 1/10/13 3:48 PM with key <a href="kmail:showCertificate#gpgsm ### SMIME ### 4CC658E3212B49DC">0x4CC658E3212B49DC</a><br/>&nbsp;<br/>Status:<i>Good signature.</i></td>
<td align="right" valign="top" nowrap="nowrap">
<a href="kmail:hideSignatureDetails">Hide Details</a>
</td>
......
......@@ -19,7 +19,7 @@
<td dir="ltr">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td rowspan="2">Message was signed by <a href="mailto:test%40example.com">CN=unittest cert,EMAIL=test@example.com,O=KDAB,C=US</a> on 08.09.10 15:51 with key <a href="kmail:showCertificate#gpgsm ### SMIME ### 4CC658E3212B49DC">0x4CC658E3212B49DC</a><br/>&nbsp;<br/>Status:<i>Good signature.</i><br/>&nbsp;<br/><u>Warning:</u> Sender's mail address is not stored in the <a href="kmail:showCertificate#gpgsm ### SMIME ### 4CC658E3212B49DC">certificate</a> used for signing.<br/>sender: <br/>stored: test@example.com</td>
<td rowspan="2">Message was signed by <a href="mailto:test%40example.com">CN=unittest cert,EMAIL=test@example.com,O=KDAB,C=US</a> on 9/8/10 3:51 PM with key <a href="kmail:showCertificate#gpgsm ### SMIME ### 4CC658E3212B49DC">0x4CC658E3212B49DC</a><br/>&nbsp;<br/>Status:<i>Good signature.</i><br/>&nbsp;<br/><u>Warning:</u> Sender's mail address is not stored in the <a href="kmail:showCertificate#gpgsm ### SMIME ### 4CC658E3212B49DC">certificate</a> used for signing.<br/>sender: <br/>stored: test@example.com</td>
<td align="right" valign="top" nowrap="nowrap">
<a href="kmail:hideSignatureDetails">Hide Details</a>
</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment