It might be a good idea to refer to Wikipedia, they are frequently well-informed on national laws, which do differ substantially where photographs are concerned.
My country is a case in point of weirdness according to law. Before 2006 the term of copyright was 50 years from the date of the picture having been taken — thus all photos from 1955 or earlier are PD. Post-1956 is now life of the photographer + 70 anno, I believe.
For domain .ua, it would be best to look up the national laws on Wiki to double-check. If the identity of the photographer doesn't affect the duration of the copyright term, then the date the photo was taken is all that matters. If the identity of the photographer is truly anonymous, then sometimes there are provisions to limit the copyright term — otherwise you then sometimes have to go looking for dates for the photographer.