Commits

Zhang Huangbin committed 2e957bb

Fix typo error in template: whiespace -> whitespace.

Comments (0)

Files changed (2)

     t = to_datetime_with_tzinfo(dt, tzinfo=UTC)
 
     # Convert original timestamp (with UTC timezone) to timestamp with local timezone.
-    return to_datetime_with_tzinfo(t, tzinfo=LOCAL_TIMEZONE).strftime(format)
+    ft = to_datetime_with_tzinfo(t, tzinfo=LOCAL_TIMEZONE)
+    if ft:
+        return ft.strftime(format)
+    else:
+        return '--'
 
 
 if __name__ == '__main__':

templates/default/dbmail_mysql/user/list.html

                         </td>
                     {% endif %}
 
-                    <td class="vcenter" style="whiespace: nowrap;">{{ r.last_login |setDatetimeFormat |convert_utc_to_timezone }}</td>
+                    <td class="vcenter" style="whitespace: nowrap;">{{ r.last_login |setDatetimeFormat |convert_utc_to_timezone }}</td>
                 </tr>
             {% endfor %}
         {% else %}