Now uses the right length of day (6-hour or 24-hou) depending on the game settings.