aboutsummaryrefslogtreecommitdiffstats
path: root/src/utility/datetimeUtils.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2008-12-29 21:46:08 +0000
committerVincent Richard <[email protected]>2008-12-29 21:46:08 +0000
commit2fe5fceb3f3cae44ea9ae1f720e3a8fb54c97fca (patch)
treed78747084ff65d5115d5fe7cbd85395c431a3588 /src/utility/datetimeUtils.cpp
parentSend CRLF in the same packet as command to avoid problems with some servers. (diff)
downloadvmime-2fe5fceb3f3cae44ea9ae1f720e3a8fb54c97fca.tar.gz
vmime-2fe5fceb3f3cae44ea9ae1f720e3a8fb54c97fca.zip
Fixed week of year for 53th week (non ISO-compliant).
Diffstat (limited to 'src/utility/datetimeUtils.cpp')
-rw-r--r--src/utility/datetimeUtils.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utility/datetimeUtils.cpp b/src/utility/datetimeUtils.cpp
index ed9fb4bf..cc06f508 100644
--- a/src/utility/datetimeUtils.cpp
+++ b/src/utility/datetimeUtils.cpp
@@ -322,6 +322,9 @@ int datetimeUtils::getWeekOfYear(const int year, const int month, const int day)
WeekNumber -= 1;
}
+ if (WeekNumber == 1 && month == 12)
+ WeekNumber = 53;
+
return WeekNumber;
}