extend/cowboy — pull request #282 by dbmercer (2012-10-11 21:38:49+00:00)
Title: Patch to cowboy_rest for when local time != UTC

The *If-Modified-Since* and *Last-Modified* HTTP headers are in UTC, but *cowboy_rest.erl* is expecting the time returned by *last_modified*/1 to be in local time. (We know this because the *Last-Modified* header is assembled with *httpd_util:rfc1123_date*/1, which expects its argument in local time.) When comparing the *If-Modified-Since* time to *last_modified*, we therefore need to put them in the same timezone.