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