[darcs-devel] [issue1311] date matching fails with BST timezone
Dave Love
bugs at darcs.net
Sun Jan 11 17:20:44 UTC 2009
New submission from Dave Love <fx at gnu.org>:
A quick look at the source suggests that this must be a bug in the GHC
library but, if so, it seems worth recording and I can't see an existing
bug report. I found that matching failed in my own repo on a BST time
stamp, but not a GMT one. Here's an example in the darcs repo with a
recently-built binary:
$ ./darcs --version
2.2.0pre2 (+ 38 patches)
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.8.2
$ ./darcs diff --match 'date "Thu Oct 23 06:09:26 BST 2008"'
darcs failed: Couldn't match pattern "date "Thu Oct 23 06:09:26 BST 2008""
$ darcs diff --match 'date "Thu Oct 23 05:09:26 GMT 2008"'|head -2
Thu Oct 23 06:09:26 BST 2008 Trent W. Buck <trentbuck at gmail.com>
* Miscellaneous refactoring.
For what it's worth, it isn't a problem with glibc:
$ /lib64/libc.so.6 --version|head -1
GNU C Library development release version 2.8.90, by Roland McGrath et al.
$ date -d "Thu Oct 23 06:09:26 BST 2008"
Thu Oct 23 06:09:26 BST 2008
$ date -d "Thu Oct 23 05:09:26 GMT 2008"
Thu Oct 23 06:09:26 BST 2008
----------
messages: 7044
nosy: dmitry.kurochkin, fx, kowey, simon, thorkilnaur
status: unread
title: date matching fails with BST timezone
__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1311>
__________________________________
More information about the darcs-devel
mailing list