summaryrefslogtreecommitdiff
path: root/cgi-bin/link.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi-bin/link.py')
-rw-r--r--cgi-bin/link.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi-bin/link.py b/cgi-bin/link.py
index d6f3251..5cb6b2d 100644
--- a/cgi-bin/link.py
+++ b/cgi-bin/link.py
@@ -28,8 +28,8 @@ class Link:
else:
return "<img src=\""+self.src(target)+"\" class=\""+order+"\"/>"
- def caption(self, figure):
- if self.detect(figure):
+ def timestamp(self, date):
+ if self.detect(date):
date=datetime.datetime.strftime(datetime.datetime.strptime(figure[:12], "%Y%m%d%H%M"), "%Y-%m-%d %H:%M")
return date
else: