add units to time, use configuration time api where appropriate, fixing Mantis #1875