you need to have a valid passport of six months when you travel!  It's safe you extend it now and when you come back, have it renewed here.  There might be complications!