Something rather odd I just noticed. gmtime isn't working on Solaris
but is working on Linux.
I first fetched 2.1.9 from cvs on Linux and built the archive and
indeed all the dates are GMT with gmtime=On.
A few minutes later I then did a cvs checkout on Solaris 2.6 and scp'ed
my config file, headers and mbox archive. I created the archive and the
dates are not GMT but in the local zone PST.
I figured I messed up my config so I then scp'ed the config file back to
my linux machine and rebuild the archive again in a new directory and
then the dates were all UTC.
Any suggestion on where to look for the problem?
This is an example on the Solaris machine:
$ rm -rf archive.new
$ fgrep gmtime hypermailrc | grep -v ^#
gmtime = On
$ gzip -dc mbox.new/*.gz | hypermail -i -c hypermailrc -d archive.new
$ ls -l archive.new/2004-01/date.html
... 25235 Jan 22 21:11 archive.new/2004-01/date.html
$ fgrep PST archive.new/2004-01/date.html
<li><dfn><a href="#first" title="jump to messages list" tabindex="1">125 messages</a></dfn>: <dfn>Starting</dfn> Fri Jan 02 2004 - 11:38:40 PST, <dfn>Ending</dfn> Mon Jan 19 2004 - 18:00:50 PST</li>
: Fri Jan 23 2004 - 05:11:19 PST
$ fgrep 2.1.9 archive.new/2004-01/date.html
<meta name="generator" content="hypermail pre-2.1.9, see http://www.hypermail.org/" />
This archive was generated by <a href="http://www.hypermail.org/">hypermail pre-2.1.9</a>
Back on the linux machine:
$ fgrep GMT archive.new/2004-01/date.html
<li><dfn><a href="#first" title="jump to messages list" tabindex="1">125 messages</a></dfn>: <dfn>Starting</dfn> Fri Jan 02 2004 - 11:38:40 GMT, <dfn>Ending</dfn> Mon Jan 19 2004 - 18:00:50 GMT</li>
: Fri Jan 23 2004 - 04:54:31 GMT
Oh, another small bug:
http://swish-e.org/Discussion/archive/2004-01/date.html#end
There doesn't seem to be an <a name="end"> tag. I'm not using a custom
footer.
--
Bill Moseley
mos...@hank.org
No, and I don't have access to a Solaris machine to test this.
>Oh, another small bug:
>
> http://swish-e.org/Discussion/archive/2004-01/date.html#end
>
>There doesn't seem to be an <a name="end"> tag. I'm not using a custom
>footer.
I've checked in a fix for this.
--
------------------------------------------------------------------------------
Peter McCluskey | "To announce that there must be no criticism of
http://www.rahul.net/pcm | the President, or that we are to stand by the
| President right or wrong, is not only unpatriotic
| and servile, but morally treasonable to the
| American public." - Theodore Roosevelt
That solaris machine has wasted many hours of my time over the years.
What about this?
$ fgrep '%z' *.c
print.c: char *timezone_dateformat = "GMT%z";
strftime(3C) on Solaris 2.6 or Solaris 5.8 does not have %z
If you can give me some pointers on the code maybe I can try
and figure out where to look for the gmtime problem.
Peter, can I make a suggestion? Move the build system to automake. I
moved the swish-e (another Kevin project) to automake and it was well
worth it -- swish-e builds much better on odd platforms. It was a lot
easier than I thought to move and now it's really easy to maintain. I'm
no automake expert, and I don't know your build system, but I'd be happy
to help, if needed.
On solaris I have to compile hypermail like:
$ ./configure --prefix=$HOME/local --with-gdbm=$HOME/local
$ setenv LD_RUN_PATH $HOME/local/lib
(edit src/Makefile to add -R and -L paths)
$ make
With current autoconf and automake I think just specifying the CPPFLAGS
and LDFLAGS at configure time fixes all of that.
--
Bill Moseley
mos...@hank.org
I've removed this timezone string. It's not obvious why it was being
used there, and it was apparently being used to describe a date as
being in GMT even if it was in local time.