Changed time attribute to timestamp for consistency with backend