forked from indymedia/epicyon
Get time zone
parent
65b8a744d1
commit
9be5b928d0
5
posts.py
5
posts.py
|
@ -17,6 +17,7 @@ import threading
|
|||
import sys
|
||||
import trace
|
||||
import time
|
||||
from time import gmtime, strftime
|
||||
from collections import OrderedDict
|
||||
from threads import threadWithTrace
|
||||
from cache import storePersonInCache
|
||||
|
@ -538,9 +539,9 @@ def createPostBase(baseDir: str,nickname: str, domain: str, port: int, \
|
|||
if eventTime.endswith('Z'):
|
||||
eventDateStr=eventDate+'T'+eventTime
|
||||
else:
|
||||
eventDateStr=eventDate+'T'+eventTime+':00Z'
|
||||
eventDateStr=eventDate+'T'+eventTime+':00'+strftime("%z", gmtime())
|
||||
else:
|
||||
eventDateStr=eventDate+'T00:00:00Z'
|
||||
eventDateStr=eventDate+'T12:00:00Z'
|
||||
tags.append({
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
"type": "Event",
|
||||
|
|
Loading…
Reference in New Issue