|
2011-11-16
| ||
| 00:44 | • Ticket [2837916fff] clock scan 01/2010 -format %m/%Y returns wrong result st... artifact: 34d456b8ec user: jeremy_c | |
|
2009-10-29
| ||
| 07:44 | • Ticket [2837916fff]: 1 change artifact: d4e8f6b74d user: kennykb | |
| 07:44 | • Ticket [2837916fff]: 4 changes artifact: 69142bb171 user: kennykb | |
|
2009-08-14
| ||
| 22:33 | • New ticket [2837916fff]. artifact: ca85a5b883 user: flatworm | |
clock scan 01/2010 -format %m/%Y returns wrong result
Open2837916fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 15 years ago
Descriptionplain2009-08-14 22:33:32
[clock format [clock scan 01/2010 -format %m/%Y]] returns Sat Aug 15 00:00:00 MSD 2009 while it was supposedly requested to scan Jan 01 of year 2010, time 00:00:00. Instead, it seems to return the current date with the time part reset to 00:00:00. Reproducible on Debian (Linux) on 8.5.3 and the current HEAD.
kennykbplain2009-10-29 07:44:01
Alex, I seem to recall you thinking that you had a proposal for how to fix this. I'm quite nervous about accepting underspecified dates because of the inherent ambiguities, but I"d be happy to review a concrete proposal, if you can come up with one.
kennykb Ticket [2837916fff]: 1 change
[History diff]2009-10-29 07:44:04
jeremy_cplain2011-11-16 00:44:53
I have the same problem with: "clock scan 2011/05 -format %Y/%m" .. I'd propose that if an element is missing just take today's element. If that has adverse side effects then I would suggest that if the -format parameter is supplied and does not include a full date that an error should be returned not an arbitrary date.
Log in (anonymous is fine) to add a comment.