Closed AngusP closed 10 years ago
moment.js is good— Sent from Mailbox for iPhone
On Sun, Jan 26, 2014 at 8:15 PM, Angus Pearson notifications@github.com wrote:
Currently you can't get separate timing data from the api: (Sample event:) "slug":15, "summary":"Weekly Social", "summaryDisplay":"Socials: Weekly Social", "description":"Come have a chat, drink, food, whatever!", "deleted":false, "is_physical":true, "is_virtual":false, "siteurl":"http:\/\/compsoc.hasacalendar.co.uk\/event\/15", "url":"http:\/\/compsoc.hasacalendar.co.uk\/event\/15", "timezone":"Europe\/London", "start":{ "timestamp":1390939200, "rfc2882utc":"Tue, 28 Jan 2014 20:00:00 +0000", "rfc2882local":"Tue, 28 Jan 2014 20:00:00 +0000", "displaylocal":"Tue 28 Jan 2014 08:00pm", "rfc2882timezone":"Tue, 28 Jan 2014 20:00:00 +0000", "displaytimezone":"Tue 28 Jan 2014 08:00pm" }, "end":{ "timestamp":1390953540, "rfc2882utc":"Tue, 28 Jan 2014 23:59:00 +0000", "rfc2882local":"Tue, 28 Jan 2014 23:59:00 +0000", "displaylocal":"Tue 28 Jan 2014 11:59pm", "rfc2882timezone":"Tue, 28 Jan 2014 23:59:00 +0000", "displaytimezone":"Tue 28 Jan 2014 11:59pm" }
You'd have to use the 'timestamp' and convert that to the pieces you need in JS (yuck) and then assemble it
Reply to this email directly or view it on GitHub: https://github.com/compsoc-edinburgh/website-django/issues/14
You should email James at hello@jamesbaster.co.uk and discuss it with him, perhaps he could change it to give us all the components separately, if that would be better?
Or actually i'll probably be seeing him tomorrow, i'll mention it.
If you don't manage it, I can setup moment.js to parse things for the moment! (unintended, too lazy to change).
On Wed, Jan 29, 2014 at 12:55 AM, Rikki Guy notifications@github.comwrote:
Or actually i'll probably be seeing him tomorrow, i'll mention it.
— Reply to this email directly or view it on GitHubhttps://github.com/compsoc-edinburgh/website-django/issues/14#issuecomment-33546032 .
:wq!
Closed as we are ditching hasacalendar.
I'll just weep quietly, what are we using instead?
On Fri, Feb 14, 2014 at 10:56 AM, a3gis notifications@github.com wrote:
Closed #14 https://github.com/compsoc-edinburgh/website-django/issues/14 .
— Reply to this email directly or view it on GitHubhttps://github.com/compsoc-edinburgh/website-django/issues/14 .
:wq!
The events model ;_;
BTW that redundant JS now needs to be removed :D
lol, okay, I can do that...
commited bitches!! Deal with it
Currently you can't get separate timing data from the api: (Sample event:)
You'd have to use the 'timestamp' and convert that to the pieces you need in JS (yuck) and then assemble it