Revert "remove reference to localtime"

This reverts commit ca1ec9d83701b8fc37607d855533721accfaa64d.
apply localtime for ajax