|
a/Allura/allura/lib/helpers.py |
|
b/Allura/allura/lib/helpers.py |
|
... |
|
... |
233 |
if rounded_to_one_granularity:
|
233 |
if rounded_to_one_granularity:
|
234 |
break
|
234 |
break
|
235 |
return ago + ' ago'
|
235 |
return ago + ' ago'
|
236 |
|
236 |
|
237 |
def ago_ts(timestamp):
|
237 |
def ago_ts(timestamp):
|
238 |
return ago(datetime.fromtimestamp(timestamp))
|
238 |
return ago(datetime.utcfromtimestamp(timestamp))
|
239 |
|
239 |
|
240 |
def tag_artifact(artifact, user, tags):
|
240 |
def tag_artifact(artifact, user, tags):
|
241 |
from allura import model as M
|
241 |
from allura import model as M
|
242 |
aref = artifact.dump_ref()
|
242 |
aref = artifact.dump_ref()
|
243 |
when = datetime.utcnow()
|
243 |
when = datetime.utcnow()
|