Bug#907264: faketime: timezone bugs: lax parsing, no way to specify UTC or TZ

2022-03-09 Thread Daniel Kahn Gillmor
Control: reassign 907264 libc6 2.33-7 Control: retitle 907264 glibc's strptime does not handle %z and %Z as expected Control: affects 907264 + faketime On Sat 2018-08-25 21:44:04 +0200, Wolfgang Hommel wrote: > Apparently, glibc goes for a new tm->tm_gmtoff field and supports %z > (but not %Z)

Bug#907264: faketime: timezone bugs: lax parsing, no way to specify UTC or TZ

2018-08-25 Thread Wolfgang Hommel
Ian, thanks for the detailed report, which is clearly to confirm. libfaketime internally relies on strptime() to parse the user-specified timestamp. On current macOS, your examples work reasonably well in the following variation: $ FAKETIME_FMT="%Y-%m-%d %T %z" ./faketime -f '2018-06-26

Bug#907264: faketime: timezone bugs: lax parsing, no way to specify UTC or TZ

2018-08-25 Thread Ian Jackson
Package: faketime Version: 0.9.6-7+b1 1. faketime does not properly validate the supplied advanced timestamp format: $ faketime -f '2018-06-26 09:00:03+02:00' date -R Tue, 26 Jun 2018 09:00:03 +0100 $ date -R -d '2018-06-26 09:00:03+02:00' Tue, 26 Jun 2018 08:00:03