From a792cdd17adfc8e52d024bb54f2448b4efe540be Mon Sep 17 00:00:00 2001
From: = <=>
Date: Thu, 14 Sep 2017 19:50:41 -0600
Subject: [PATCH] Modify date time string for event metadata
---
Server/src/routes/api/share.js | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Server/src/routes/api/share.js b/Server/src/routes/api/share.js
index 663b3b1..f58a874 100644
--- a/Server/src/routes/api/share.js
+++ b/Server/src/routes/api/share.js
@@ -133,7 +133,7 @@ function getEventMeta(req, res, id){
-
+
@@ -147,6 +147,12 @@ function getEventMeta(req, res, id){
});
}
+function dateToString(dte){
+ var val = dte.toLocaleString([],{ timeZone: 'America/Denver', day: 'numeric', month: 'numeric', year: 'numeric', hour: 'numeric', minute:'2-digit'});
+ console.log(val);
+ return val;
+}
+
const MONTHS_FULL = {
0: "JANUARY",
1: "FEBRUARY",