refactor user resource; collect common constants
remove duplicate utility; rename existing function
switch back to strings for timestamps