<li id="<%= todo.dom_id %>" class="<%=todo.css_classes%>">
  <%= hidden_field_tag("id", todo.id) %>
  <%= hidden_field_tag("task_id", todo.task_id) %>
  <%= hidden_field_tag("todo[position]", todo.position)%>
  <%= todo_open_close_check_box(todo) %>
  <span class="display">
    <%=h todo.name %>
  </span>
  <span class="edit" style="display: none;">
    <%= text_field_tag("todo[name]", todo.name) %>
    <%= javascript_tag("addTodoKeyListener(#{ todo.id }, #{ @task.id })") %>
    <%= link_to_function("Cancel", "toggleTodoEdit(this)") %>
  </span>

  <% if todo.done? %>
    <%=h "[#{ formatted_datetime_for_current_user(todo.completed_at) }]" %>
    <%=h "[#{ todo.completed_by_user.name }]" if todo.completed_by_user %>
  <% else %>
    &nbsp;
    <%= link_to_function(image_tag("edit.png"), "toggleTodoEdit(this)") %>
  <% end %>

  &nbsp;
  <%= delete_todo_link(todo) %>
</li>

<li id="<%= todo.dom_id %>" class="<%=todo.css_classes%>">
  <%= hidden_field_tag("id", todo.id) %>
  <%= hidden_field_tag("task_id", todo.task_id) %>
  <%= hidden_field_tag("todo[position]", todo.position)%>
  <%= todo_open_close_check_box(todo) %>
  <span class="display">
    <%=h todo.name %>
  </span>
  <span class="edit" style="display: none;">
    <%= text_field_tag("todo[name]", todo.name) %>
    <%= javascript_tag("addTodoKeyListener(#{ todo.id }, #{ @task.id })") %>
    <%= link_to_function("Cancel", "toggleTodoEdit(this)") %>
  </span>

  <% if todo.done? %>
    <%=h "[#{ formatted_datetime_for_current_user(tz.utc_to_local(todo.completed_at)) }]" %>
    <%=h "[#{ todo.completed_by_user.name }]" if todo.completed_by_user %>
  <% else %>
    &nbsp;
    <%= link_to_function(image_tag("edit.png"), "toggleTodoEdit(this)") %>
  <% end %>

  &nbsp;
  <%= delete_todo_link(todo) %>
</li>

Fix time in completed todo. Now user sees in completed todo his local time, not utc.
Fix time in completed todo. Now user sees in completed todo his local time, not utc.
