                     data['value'] = '[ ... ]'
                     data['data_to_expand'] = JSON.stringify(value)
             else if value_type is 'object' and value.$reql_type$ is 'TIME' and value.epoch_time?
-                data['value'] = (new Date(value.epoch_time*1000)).toString()
-                data['classname'] = 'jta_date' 
+                data['value'] = @date_to_string(value)
+                data['classname'] = 'jta_date'
             else if value_type is 'object'
                 data['value'] = '{ ... }'
                 data['is_object'] = true

                data.value = if value is true then 'true' else 'false'

            return data

        # Expand a JSON object in a table. We just call the @json_to_tree
        expand_tree_in_table: (event) =>

            else if value_type is 'object' and value.$reql_type$ is 'TIME' and value.epoch_time?
                return @template_json_tree.span
                    classname: 'jt_date'
                    value: @date_to_string(value)
            else if value_type is 'object'
                sub_keys = []
                for key of value
