Patches for Check_compdate [sf#1172231] [#559]