custom date formatter for the jquery-comment plugin , which uses the timeago plugin for jquery . convert the given date to utc time zone and format using the following spec : yyyy-mm-dd hh : mm : ss concode_field_sep Long SEC concode_elem_sep DateTimeFormatter isoNoMillisUtc concode_elem_sep DateTimeFormatter isoNoMillis concode_elem_sep Long MIN concode_elem_sep Long HOUR concode_elem_sep Logger log concode_elem_sep DateTimeFormatter timeAgoUtc concode_field_sep String toIso8601 concode_elem_sep String toIso8601 concode_elem_sep String toIso8601_duration
String function ( Date arg0 ) { if ( arg0 == null ) { throw new IllegalArgumentException ( "srini_string" ) ; } return DateUtil . timeAgoUtc . withZoneUTC ( ) . print ( arg0 . getTime ( ) ) ; }