Fix setting of fromtime attribute in the xml.