Branch: Tag:

2000-08-12

2000-08-12 08:45:26 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

bugfix in dwim_time (needed 02:03::47 for second precision)
dwim_zone and Timezone[] now understands "-0700" timezones for handling mail time like "Sat, 12 Aug 2000 00:49:42 -0700"

Rev: lib/modules/Calendar.pmod/Timezone.pmod:1.6
Rev: lib/modules/Calendar.pmod/YMD.pmod:1.8

2368:       Calendar cal=this_object();    + // #define NOCATCH + #ifndef NOCATCH    if (catch { -  + #else +  werror("%O\n",m); + #endif    string x;    if (m->Y)    m->Y=default_rules->language[f_year_number_from_name](m->Y);
2497:    return low[g](h,mi,s);    else    return low; + #ifndef NOCATCH    }) -  + #endif    return 0;   }   
2622:    string zone )    foreach ( ({ "%t",    "T%t", -  "%h:%*[ :]%m%*[ :]:%s %p", -  "%h:%*[ :]%m%*[ :]:%s", +  "%h:%*[ :]%m%*[ :]%s %p", +  "%h:%*[ :]%m%*[ :]%s",    "%h:%*[ :]%m %p",    "%h:%*[ :]%m", -  "%[a-zA-Z.] %h:%*[ :]%m%*[ :]:%s %p", -  "%[a-zA-Z.] %h:%*[ :]%m%*[ :]:%s", +  "%[a-zA-Z.] %h:%*[ :]%m%*[ :]%s %p", +  "%[a-zA-Z.] %h:%*[ :]%m%*[ :]%s",    "%[a-zA-Z.] %h:%*[ :]%m %p",    "%[a-zA-Z.] %h:%*[ :]%m", }),    string todformat )