Branch: Tag:

2014-03-02

2014-03-02 13:29:20 by Marcus Comstedt <marcus@mc.pp.se>

Standards.ASN1: Fix UTC type to actually use UTC

Previously it would encode/decode as local time.

Also, adjusted test cases accordingly.

1178:       this_program set_posix(int t)    { -  object second = Calendar.ISO.Second(t); +  object second = Calendar.ISO_UTC.Second(t);       // FIXME: What is this based on?    if (second->year_no() >= 2050)
1204:    else    t[0]+=2000;    -  return [int]Calendar.ISO.Second(@t)->unix_time(); +  return [int]Calendar.ISO_UTC.Second(@t)->unix_time();    }   }