wrong switch date in scala