Buggfix konvertering js local date -> TimeOfDay