[Soup] Incorrect conversion in msToSoupDate()
authorzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Aug 2017 07:00:34 +0000 (07:00 +0000)
committerzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Aug 2017 07:00:34 +0000 (07:00 +0000)
commitd7e8dd937b5e7b9314e628679f396dc1a32cf3ff
tree68ec0c0f223820a3cdb6c26c4965d2deffd6f34b
parent3f34ca7d731949049ac688b9273d811df427bd00
[Soup] Incorrect conversion in msToSoupDate()
https://bugs.webkit.org/show_bug.cgi?id=175320

Reviewed by Carlos Garcia Campos.

Original patch by VaL Doroshchuk.

* platform/network/soup/NetworkStorageSessionSoup.cpp:
(WebCore::msToSoupDate): monthFromDayInYear() returns a value in the [0,11] range,
while soup_date_new() expects a month value in the [1,12] range. The return value
must be thus incremented by one to match that expectation.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@220444 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp