GEOT-4937: Fixing time dimensions mapping - backport to 12.x