Fix shadowing of time module
Merge pull request #12689 from terminalmage/issue12645

Fix shadowing of time module