-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Website now serves meeting icals #266
Conversation
Thank you for this pull request, @RandoomJD! @michael-grace, would you mind reviewing this PR, please? Feel free to ask anyone for help if you're not quite sure what you're doing. |
func (m *EventsModel) Get() ([]myradio.Event, error) { | ||
today := time.Now().Truncate(time.Hour * 24) | ||
start := today.Format("20060102T150405Z") | ||
end := today.AddDate(1, 0, 0).Format("20060102T150405Z") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these lines would be better off in myradio-go when creating the request, to allow a time.Time to be passed in
@@ -66,7 +66,7 @@ | |||
<br> | |||
<h1 class="text-center">Come see us!</h1> | |||
<br> | |||
<p class="text-center">We have a calendar of <a href="https://goo.gl/5APK7Q">all our meetings</a>, to which new members are always welcome, and you can drop by the station almost any time and there'll be someone to talk to.</p> | |||
<p class="text-center">We have a calendar of <a href="/meetings.ics">all our meetings</a>, to which new members are always welcome, and you can drop by the station almost any time and there'll be someone to talk to.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will this give people an easy to read format, or just an integration?? also, this page only shows up once in someone's ury lifetime, so it maybe isn't best on the main website and keep it to myradio
requires myradio-go: james-events pull request