fix for clock unit conversion

see issue #123