changed datetime showing format, fixed updating appointments