fix: move variable declaration to DayItemView template view to make it local
fix: move variable declaration to DayItemView template view to make it local

DiamondLightSource/SynchWeb,DiamondLightSource/SynchWeb,DiamondLightSource/SynchWeb,DiamondLightSource/SynchWeb,DiamondLightSource/SynchWeb,DiamondLightSource/SynchWeb