macirssi and timezone
by fasterlaster on Jun.05, 2009, under Geek
I do all my communications with irc at work, but unfortunately I’m in Mountain TZ and work references Pacific. I found that I could run /script exec $ENV{'TZ'}='PST8PDT'; and set the time to follow pacific, but every time I put it into an auto portion it just flaked out. Perl to the rescue. I wrote a two liner perl called timezone.pl in .irssi/scripts
$: cat ~/.irssi/scripts/timezone.pl
# timezone.pl - set the timzone for irssi.
use strict;
$ENV{'TZ'}='PST8PDT';
And put it in my .irssi/startup file
script load timezone
Now when I start macirssi, it changes my default timezone that macirssi uses.