summaryrefslogtreecommitdiff
path: root/library
authorzecke <zecke>2003-02-16 21:15:03 (UTC)
committer zecke <zecke>2003-02-16 21:15:03 (UTC)
commit73aed6b9a34330b31f05864746269017cd53017d (patch) (unidiff)
tree46871140a505ab3a98afab9d10072816568fe909 /library
parent892a453a931b41967c7dca72097da9c5be7f84d6 (diff)
downloadopie-73aed6b9a34330b31f05864746269017cd53017d.zip
opie-73aed6b9a34330b31f05864746269017cd53017d.tar.gz
opie-73aed6b9a34330b31f05864746269017cd53017d.tar.bz2
stoned coding should be prohibited in Australia..
The comment nicely says year month day Z hour minute secons and it was year month year so what is wrong ;)
Diffstat (limited to 'library') (more/less context) (ignore whitespace changes)
-rw-r--r--library/backend/event.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/backend/event.cpp b/library/backend/event.cpp
index 2d02a34..eb238a4 100644
--- a/library/backend/event.cpp
+++ b/library/backend/event.cpp
@@ -1103,30 +1103,30 @@ namespace {
1103 * local time and do not use the Z at the end 1103 * local time and do not use the Z at the end
1104 * 1104 *
1105 */ 1105 */
1106 QCString toISOLocal( const QDateTime& dt ) { 1106 QCString toISOLocal( const QDateTime& dt ) {
1107 QCString str; 1107 QCString str;
1108 /* 1108 /*
1109 * year month day T Hour Minute Second 1109 * year month day T Hour Minute Second
1110 * 4 2 2 2 2 2 digits 1110 * 4 2 2 2 2 2 digits
1111 */ 1111 */
1112 str.sprintf("%04d%02d%02dT%02d%02d%02d", 1112 str.sprintf("%04d%02d%02dT%02d%02d%02d",
1113 dt.date().year(), 1113 dt.date().year(),
1114 dt.date().month(), 1114 dt.date().month(),
1115 dt.date().year(), 1115 dt.date().day(),
1116 dt.time().hour(), 1116 dt.time().hour(),
1117 dt.time().minute(), 1117 dt.time().minute(),
1118 dt.time().second() ); 1118 dt.time().second() );
1119 1119
1120 1120 qWarning("Str ist %s", str.data() );
1121 1121
1122 return str; 1122 return str;
1123 } 1123 }
1124 1124
1125 1125
1126}; 1126};
1127 1127
1128static VObject *createVObject( const Event &e ) 1128static VObject *createVObject( const Event &e )
1129{ 1129{
1130 VObject *vcal = newVObject( VCCalProp ); 1130 VObject *vcal = newVObject( VCCalProp );
1131 safeAddPropValue( vcal, VCVersionProp, "1.0" ); 1131 safeAddPropValue( vcal, VCVersionProp, "1.0" );
1132 VObject *event = safeAddProp( vcal, VCEventProp ); 1132 VObject *event = safeAddProp( vcal, VCEventProp );