diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2016-06-28 05:07:09 +0300 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-07-22 15:56:48 +0200 |
commit | f088e398856b58e486ddda87dfd343c8d93b4433 (patch) | |
tree | 1fbeb9d0675f4097805802050091aeb6840ca270 /kdecore/tests/ktimezonestest.cpp | |
parent | 9fde716a8c71ae4fc27178701d8a700b375322dd (diff) | |
download | tdelibs-f088e398856b58e486ddda87dfd343c8d93b4433.tar.gz tdelibs-f088e398856b58e486ddda87dfd343c8d93b4433.zip |
Initial add for check target for cmake
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 0c64a776ddecfa33a37318e79b8811d9774579ae)
Diffstat (limited to 'kdecore/tests/ktimezonestest.cpp')
-rw-r--r-- | kdecore/tests/ktimezonestest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kdecore/tests/ktimezonestest.cpp b/kdecore/tests/ktimezonestest.cpp index 650cc0512..185ab8782 100644 --- a/kdecore/tests/ktimezonestest.cpp +++ b/kdecore/tests/ktimezonestest.cpp @@ -20,7 +20,7 @@ int main(int argc, char *argv[]) printf( "UTC timezone offset should be 0: %d\n", timezone->offset(TQDateTime::currentDateTime()) ); // Find some offsets for Europe/London. - char *london = "Europe/London"; + const char *london = "Europe/London"; timezone = timezones.zone(london); TQDateTime winter(TQDateTime::fromString("2005-01-01T00:00:00", Qt::ISODate)); TQDateTime summer(TQDateTime::fromString("2005-06-01T00:00:00", Qt::ISODate)); @@ -29,10 +29,10 @@ int main(int argc, char *argv[]) // Try timezone conversions. const KTimezone *losAngeles = timezones.zone("America/Los_Angeles"); - char *bstBeforePdt = "2005-03-28T00:00:00"; - char *bstAfterPdt = "2005-05-01T00:00:00"; - char *gmtBeforePst = "2005-10-30T01:00:00"; - char *gmtAfterPst = "2005-12-01T00:00:00"; + const char *bstBeforePdt = "2005-03-28T00:00:00"; + const char *bstAfterPdt = "2005-05-01T00:00:00"; + const char *gmtBeforePst = "2005-10-30T01:00:00"; + const char *gmtAfterPst = "2005-12-01T00:00:00"; TQString result; result = timezone->convert(losAngeles, TQDateTime::fromString(bstBeforePdt, Qt::ISODate)).toString(Qt::ISODate); printf( "BST before PDT, %s should be 2005-03-27T15:00:00: %s\n", bstBeforePdt, result.latin1() ); |