-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add timezone parameter and calculate all timestamps according to it
- Loading branch information
1 parent
baf6bb7
commit 473768f
Showing
8 changed files
with
37 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
jekyll-theme-conference (3.6.5) | ||
jekyll-theme-conference (3.6.6) | ||
jekyll (~> 4.0) | ||
|
||
GEM | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,9 @@ conference: | |
# Language | ||
lang: en | ||
|
||
# Timezone | ||
tz: "+02:00" | ||
|
||
# Show theme errors: | ||
show_errors: True | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
{%- include partials/get_talk_time.html -%} | ||
|
||
{%- assign datetime_start = d.date | append: " " | append: talk_start -%} | ||
{%- assign datetime_start = d.date | append: "T" | append: talk_start | append: ":00" -%} | ||
{%- if site.conference.tz -%} | ||
{%- assign datetime_start = datetime_start | append: site.conference.tz -%} | ||
{%- endif -%} | ||
{%- assign add_days_start = talk_start_day | times: 24 | times: 60 | times: 60 -%} | ||
{%- assign timestamp_start = datetime_start | date: "%s" | plus: add_days_start | date: "%s" -%} | ||
|
||
{%- assign datetime_end = d.date | append: " " | append: talk_end -%} | ||
{%- assign datetime_end = d.date | append: "T" | append: talk_end | append: ":00" -%} | ||
{%- if site.conference.tz -%} | ||
{%- assign datetime_end = datetime_end | append: site.conference.tz -%} | ||
{%- endif -%} | ||
{%- assign add_days_end = talk_end_day | times: 24 | times: 60 | times: 60 -%} | ||
{%- assign timestamp_end = datetime_end | date: "%s" | plus: add_days_end | date: "%s" -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters