pike.git / lib / modules / Calendar.pmod / YMD.pike

version» Context lines:

pike.git/lib/modules/Calendar.pmod/YMD.pike:2638:    zonename = zonename[0..1] + zonename[3..3];    else if(sizeof(zonename)>4 && has_suffix(zonename, "DST"))    zonename = zonename[..<3];       if (origin->rules->abbr2zone[zonename])    zonename=origin->rules->abbr2zone[zonename];       Calendar.Rule.Timezone zone=Calendar.Timezone[zonename];    if (!zone)    { -  if (sscanf(zonename,"%[^-+]%s",string a,string b)==2 && a!="" && b!="") +  if (sscanf(zonename,"%[^+-]%s",string a,string b)==2 && a!="" && b!="")    {    TimeRange tr=dwim_zone(origin,a,whut,@args);    if (!tr) return 0;       return    dwim_tod(origin->set_timezone(    Calendar.Timezone.make_new_timezone(    tr->timezone(),    Calendar.Timezone.decode_timeskew(b))),    whut,@args);