Yes, or feed it into the timezone expert system (it takes a time and a zone abbreviaton or name and figures out a matching zone+time for that, iirc). dwim_zone?
That expert system should also handle the DST/summer time case.
/ Mirar
Previous text:
2003-10-15 21:30: Subject: Timezones
Ok, so I can change the dwim rule (I didn't find any set_dst-method :)
if (sizeof(what)>19 && (t=parse(SPACED("%e %M %D %h:%m:%s %z DST %Y"),what,cx))) { string tz = t->tzname(); t->set_timezone( tz[..sizeof(tz)-2] + "S" + tz[sizeof(tz)-1..sizeof(tz)-1] ); return t; }
into
if (sizeof(what)>19 && (t=parse(SPACED("%e %M %D %h:%m:%s %z DST %Y"),what,cx))) return t;
?
/ Martin Nilsson (saturator)