Skip to content

Commit

Permalink
Update luxon
Browse files Browse the repository at this point in the history
  • Loading branch information
JesperDramsch committed Dec 20, 2023
1 parent 6758f4c commit bf6795b
Show file tree
Hide file tree
Showing 3 changed files with 4,458 additions and 9 deletions.
14 changes: 7 additions & 7 deletions _pages/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div class="row">
<div class="col-12 col-sm-12">
<h1>
{{ site.title }}
{{ site.title }}
</h1>
</div>
<div class="meta col-12">
Expand Down Expand Up @@ -132,7 +132,7 @@ <h1 id="past-events-title">Past Events</h1>
<span class="deadline-time"></span>
</div>
</div>

</div>
</div>
<div class="row">
Expand Down Expand Up @@ -161,20 +161,20 @@ <h1 id="past-events-title">Past Events</h1>

var DateTime = luxon.DateTime;
var today = DateTime.now();

// Make sure this is >= no. of subs
// Currently not used
var colors = ['#341f97', '#ee5253', '#2e86de',
'#ff9f43', '#10ac84', '#222f3e']


{% include load_data.js %}
{% include utils.js %}
{% include multiselect_handler.js %}

// Set time zone to local timezone on web copy
$('.local-timezone').text(today.toFormat('z'));

{% for conf in site.data.archive %}
{% assign subs = conf.sub | split: "," %}
{% for sub in subs %}
Expand All @@ -183,9 +183,9 @@ <h1 id="past-events-title">Past Events</h1>
{% if conf.cfp == "TBA" %}
$('#{{conf.title | slugify}}-{{conf.year}} .timer').html("TBA");
$('#{{conf.title | slugify}}-{{conf.year}} .deadline-time').html("TBA");
$('#{{conf.title | slugify}}-{{conf.year}}').attr("cfpDiff", -Infinity);
$('#{{conf.title | slugify}}-{{conf.year}}').attr("cfpDiff", Infinity);
{% else %}

// Use specified timezone for deadlines if available else use AoE timezone
{% if conf.timezone %}
var cfpDate = DateTime.fromSQL("{{conf.cfp}}", {zone: "{{conf.timezone}}"});
Expand Down
4,451 changes: 4,450 additions & 1 deletion static/js/luxon.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion utils/conferences
Submodule conferences updated 2 files
+6 −4 2023.csv
+10 −6 2024.csv

0 comments on commit bf6795b

Please sign in to comment.