2 Revize 7d57979cab ... 6d2a58e117

Autor SHA1 Zpráva Datum
  linuxtinkerer 6d2a58e117 Merge branch 'dev' of https://notabug.org/lt/Hydra-Paste into dev před 9 roky
  linuxtinkerer 157bd05128 fixed admin dashboard for times greater than the maxtime supported with datetime před 9 roky
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  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)