Branch: Tag:

2000-08-01

2000-08-01 21:02:23 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

timezone stuff

Rev: lib/modules/Calendar.pmod/Timezone.pmod:1.3
Rev: lib/modules/Calendar.pmod/module.pmod:1.3

1:   static private int stage=0; + static private int booted=0;   static private object defcal;   static private object iso_utc;   static private object default_rules;
21: Inside #if 1
  mixed `[](string what)   {   // werror("%O\n",what); -  if ( !magic[what] || (stage && what!="default_rules")) return ([])[0]; -  switch (what) +  if (!booted)    { -  case "ISO_UTC": -  if (!iso_utc) -  { +  booted++;    stage++; -  + // bootstrap in the right order +  master()->resolv("Calendar")["Ruleset"]; +  master()->resolv("Calendar")["Timezone"]; +  master()->resolv("Calendar")["Language"]; +  master()->resolv("Calendar")["TimeRanges"]; +  master()->resolv("Calendar")["Calendar"]; +  master()->resolv("Calendar")["Time"]; +  master()->resolv("Calendar")["YMD"]; +  master()->resolv("Calendar")["Gregorian"]; +  + // load ISO    iso_utc=master()->resolv("Calendar")["ISO"]->set_timezone("UTC");    stage--;    object tz=
37: Inside #if 1
   else    default_rules->timezone=tz; // destructive!    } +  if ( !magic[what] || (stage && what!="default_rules")) return ([])[0]; +  switch (what) +  { +  case "ISO_UTC":    return iso_utc;    case "II":    return 1;