diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2016-06-28 05:07:09 +0300 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-01-29 02:27:14 +0100 |
commit | 0c64a776ddecfa33a37318e79b8811d9774579ae (patch) | |
tree | b77494d4c746e943b726fa9a976f699990e3d89c /tdecore/tests/ktimezonestest.cpp | |
parent | a3abfb87bc3ee696f9246a23978813244a257c53 (diff) | |
download | tdelibs-0c64a776ddecfa33a37318e79b8811d9774579ae.tar.gz tdelibs-0c64a776ddecfa33a37318e79b8811d9774579ae.zip |
Initial add for check target for cmake
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'tdecore/tests/ktimezonestest.cpp')
-rw-r--r-- | tdecore/tests/ktimezonestest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tdecore/tests/ktimezonestest.cpp b/tdecore/tests/ktimezonestest.cpp index 5eaf5a4fb..d00626cdf 100644 --- a/tdecore/tests/ktimezonestest.cpp +++ b/tdecore/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() ); |