Located along the Atlantic Ocean , Rabat has a mild , temperate climate . It moves from cool in winter to warm days in the summer months . Located along the Atlantic Ocean , Rabat has a mild , temperate climate , shifting from cool in winter to warm days in the summer months .