Branch: Tag:

2001-07-18

2001-07-18 08:45:31 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

bugfix: placing a time-of-day on a day with a timezone shift (DST shift) after the shift gave unwanted results

Rev: lib/modules/Calendar.pmod/YMD.pmod:1.38

2150:    {    if (what->is_timeofday)    { +  if (what->is_timeofday_f) +  { +  Second z= +  second(what->hour_no(), +  what->minute_no(), +  what->second_no()); +  return +  Fraction("timeofday_f",rules, +  z->unix_time(),what->ns,what->s_len,what->ns_len) +  ->autopromote(); +  } +  +  return second(what->hour_no(), +  what->minute_no(), +  what->second_no()) +  ->set_size_seconds(what->len); +  + #if 0    int lux=    what->ux-    Day("unix_r",what->unix_time(),what->ruleset())    ->unix_time();    -  +  werror("%O\n",lux); +     if (what->is_timeofday_f)    return    Fraction("timeofday_f",rules,
2163:       return Second("timeofday",rules,unix_time()+lux,what->len)    ->autopromote(); + #endif    }       if (what->is_year)