fixed bug where gm had cdtime objects in it instead of values
merged with cdtime bug branch