]> git.ipfire.org Git - thirdparty/cups.git/commit
Rewrite httpGetDateTime() to not use mktime(), since that function uses
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 14 Sep 2005 19:21:51 +0000 (19:21 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 14 Sep 2005 19:21:51 +0000 (19:21 +0000)
commit8b600b0355bf848ed8ecddbda7b7ad6c96cd9783
tree42f74eb43fbc3fcd6e0b3b02feed466c625ef8e2
parenta8c7842b6f05bf94923cf6285263264feedf86e1
Rewrite httpGetDateTime() to not use mktime(), since that function uses
the current timezone setting instead of UTC.

cups/http.c:
    - Rename days[] and months[] to http_days[] and http_months[] to
      avoid namespace issues.
    - httpGetDateString(): Use new http_days[] and http_months[].
    - httpGetDateTime(): Convert string to UTC using some
      relatively simple math instead of mktime().

cups/testhttp.c:
    - main(): Add tests for httpGetDateString() and
      httpGetDateTime() to verify that the new implementation
      works.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4636 7a7537e8-13f0-0310-91df-b6672ffda945
cups/http.c
cups/testhttp.c