2 Коміти 7d57979cab ... 6d2a58e117

Автор SHA1 Опис Дата
  linuxtinkerer 6d2a58e117 Merge branch 'dev' of https://notabug.org/lt/Hydra-Paste into dev 9 роки тому
  linuxtinkerer 157bd05128 fixed admin dashboard for times greater than the maxtime supported with datetime 9 роки тому
1 змінених файлів з 3 додано та 1 видалено
  1. 3 1
      static/userpastes.html

+ 3 - 1
static/userpastes.html

@@ -35,7 +35,9 @@
 				<td sorttable_customkey="{{contents['time']}}">{{!u_time.strftime("%B %d, %Y at %I:%M %p")}}</td>
 % expires = int(contents['expires'])
 % if expires:
-				<td sorttable_customkey="{{expires}}">{{!t.strftime("%B %d, %Y at %I:%M %p", t.gmtime(expires))}}</td>
+%     date = dt.datetime.fromtimestamp(0) + dt.timedelta(seconds=int(expires))
+%     #date = dt.datetime.fromtimestamp(int(expires))
+				<td sorttable_customkey="{{expires}}">{{!date.strftime("%B %d, %Y at %I:%M %p")}}</td>
 % else:
 				<td sorttable_customkey="{{expires}}">Never</td>
 % end  # (if)