Support for GeneralizedTime and UTCTime
Based on patch by Maurizio Papini.