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)