make time dynamic and ajax submit time