correct rtime handling

Also added date request paramter and gzipping result if requested