Commits

Don Park  committed 359b9e8

null date fix take 2

  • Participants
  • Parent commits b01717e

Comments (0)

Files changed (1)

File sinatra/views/essids.erb

 <tr>
   <td> <a href="/ap/<%=id["value"]["mac"]%>">   <%= id["value"]["mac"] %> </a></td>
   <td> <%= id["value"]["essid"] %> </td>
-  <% t = Time.parse(id["value"]["created_at"]) %>
-  <td> <% if t %> <%= t.strftime("%Y-%m-%d %H:%M") %> <% end %></td>
+  <td> <% if id["value"]["created_at"] %> <%= Time.parse(id["value"]["created_at"]).strftime("%Y-%m-%d %H:%M") %> <% end %></td>
   <td> (<%= id["value"]["latitude"] %>, <%= id["value"]["longitude"] %>) </td>
 </tr>
 <% end %>