Skip to content

Commit

Permalink
timezone bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jcemer committed Sep 20, 2012
1 parent f2f4d50 commit 4600edd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
6 changes: 3 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ sections:
# Other schedule items
schedule:
- name: Check-in / Breakfast
time: '09h00'
time: '9h00'

- name: Lunch
time: '12h00'
Expand All @@ -31,7 +31,7 @@ schedule:
time: '15h00'

- name: Soon
time: '08h00'
time: '8h00'

# Speakers lineup

Expand All @@ -43,7 +43,7 @@ speakers:
presentation:
title: Digging into a Linux Kernel
description: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
time: '09h00'
time: '9h00'

- name: Bill Gates
active: true
Expand Down
41 changes: 21 additions & 20 deletions _includes/section/schedule.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,31 @@
<section id="schedule">
<h3>Schedule</h3>
<table>
{% for hour in (0..23) %}
{% for minute in (0..59) %}
{% capture currenttime %}{{hour}}h{% if minute < 10 %}0{% endif %}{{ minute }}{% endcapture %}

{% for i in (180..1619) %}
{% capture currenttime %}{{ i | times: 60 | date: "%Hh%M" %}}{% endcapture %}
{% for schedule in site.schedule %}
{% if schedule.time == currenttime %}
<tr>
<td>{{ schedule.time }}</td>
<td><strong>item</strong></td>
<td>{{ schedule.name }}</td>
</tr>
{% endif %}
{% endfor %}

{% for schedule in site.schedule %}
{% if schedule.time == currenttime %}
<tr>
<td>{{ schedule.time }}</td>
<td><strong>item</strong></td>
<td>{{ schedule.name }}</td>
</tr>
{% endif %}
{% endfor %}
{% for speaker in site.speakers %}
{% if speaker.presentation.time == currenttime %}
<tr>
<td>{{ speaker.presentation.time }}</td>
<td>{{ speaker.presentation.title }}</td>
<td>{{ speaker.presentation.description }}</td>
</tr>
{% endif %}
{% endfor %}

{% for speaker in site.speakers %}
{% if speaker.presentation.time == currenttime %}
<tr>
<td>{{ speaker.presentation.time }}</td>
<td>{{ speaker.presentation.title }}</td>
<td>{{ speaker.presentation.description }}</td>
</tr>
{% endif %}
{% endfor %}

{% endfor %}
</table>
</section>
Expand Down

0 comments on commit 4600edd

Please sign in to comment.