Skip to content

Fix 24h timeformat for `expire` and `last-modified` header

Compare
Choose a tag to compare
@VaporBot VaporBot released this 03 Nov 17:12
· 147 commits to main since this release
0eacdf3
This patch was authored by @patrick-zippenfenig and released by @0xTim.

Expire and Last-Modified header were encoding the hour part in 12h format (hh) instead of 24h format (HH). This results in timestamps being 12 hours off for all afternoon hours. This fixes the format used to follow the spec correctly and adds tests to ensure no regressions.