mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2024-10-01 01:15:36 -04:00
Fixed confusing date format
This commit is contained in:
parent
e59b5837e4
commit
8c9780a0c4
@ -66,7 +66,7 @@ def get_channels():
|
|||||||
def add_bulletin(board, sender_short_name, subject, content, bbs_nodes, interface, unique_id=None):
|
def add_bulletin(board, sender_short_name, subject, content, bbs_nodes, interface, unique_id=None):
|
||||||
conn = get_db_connection()
|
conn = get_db_connection()
|
||||||
c = conn.cursor()
|
c = conn.cursor()
|
||||||
date = datetime.now().strftime('%m/%d/%Y %H:%M')
|
date = datetime.now().strftime('%Y-%m-%d %H:%M')
|
||||||
if not unique_id:
|
if not unique_id:
|
||||||
unique_id = str(uuid.uuid4())
|
unique_id = str(uuid.uuid4())
|
||||||
c.execute(
|
c.execute(
|
||||||
@ -107,7 +107,7 @@ def delete_bulletin(bulletin_id, bbs_nodes, interface):
|
|||||||
def add_mail(sender_id, sender_short_name, recipient_id, subject, content, bbs_nodes, interface, unique_id=None):
|
def add_mail(sender_id, sender_short_name, recipient_id, subject, content, bbs_nodes, interface, unique_id=None):
|
||||||
conn = get_db_connection()
|
conn = get_db_connection()
|
||||||
c = conn.cursor()
|
c = conn.cursor()
|
||||||
date = datetime.now().strftime('%m/%d/%Y %H:%M')
|
date = datetime.now().strftime('%Y-%m-%d %H:%M')
|
||||||
if not unique_id:
|
if not unique_id:
|
||||||
unique_id = str(uuid.uuid4())
|
unique_id = str(uuid.uuid4())
|
||||||
c.execute("INSERT INTO mail (sender, sender_short_name, recipient, date, subject, content, unique_id) VALUES (?, ?, ?, ?, ?, ?, ?)",
|
c.execute("INSERT INTO mail (sender, sender_short_name, recipient, date, subject, content, unique_id) VALUES (?, ?, ?, ?, ?, ?, ?)",
|
||||||
|
Loading…
Reference in New Issue
Block a user