Excuse me, but does ambient light in MapPropertiesTree=>Resurces=>Ground/UnderGroundAmbientLights have such in;ternale name? As function SetAmbientLight(GROUND, "Name", not nil, 1) works correctly itself... Also, 1st day of week is Tuesday (and 0 - Monday). Have you checked only for the first day?