Commits

Don Park  committed b01717e

null date fix

  • Participants
  • Parent commits e34b915

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>
-  <td> <%= Time.parse(id["value"]["created_at"]).strftime("%Y-%m-%d %H:%M") %></td>
+  <% t = Time.parse(id["value"]["created_at"]) %>
+  <td> <% if t %> <%= t.strftime("%Y-%m-%d %H:%M") %> <% end %></td>
   <td> (<%= id["value"]["latitude"] %>, <%= id["value"]["longitude"] %>) </td>
 </tr>
 <% end %>