diff options
author | Vincent Richard <[email protected]> | 2008-12-29 21:46:08 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2008-12-29 21:46:08 +0000 |
commit | 2fe5fceb3f3cae44ea9ae1f720e3a8fb54c97fca (patch) | |
tree | d78747084ff65d5115d5fe7cbd85395c431a3588 /src/utility/datetimeUtils.cpp | |
parent | Send CRLF in the same packet as command to avoid problems with some servers. (diff) | |
download | vmime-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.cpp | 3 |
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; } |