Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
Enforce timezone and detail time.
  • Loading branch information
ecwu authored Jan 21, 2024
1 parent b73ebe5 commit 20841b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ <h2>Bonus Tool: <code>.ics</code> file Generator</h2>
<button onclick="get_ics_material()" type="button" class="btn btn-warning">Get .ics</button>
<hr class="mt-4 mb-4">
<span>Hosting on <a href="https://pages.github.com/">GitHub Pages</a> , content delivered by <a href="https://www.cloudflare.com/">Cloudflare</a> and <a href="https://www.jsdelivr.com/">jsDelivr</a>.</span>
<p class="mb-5">Project by <a href="https://uichcc.com">UICHCC</a>, <a href="https://github.com/UICHCC/timetable-to-bg">Open Source at GitHub</a>; Current Version: <span class="text-success">v1.5</span> </p>
<p class="mb-5">Project by <a href="https://uichcc.com">UICHCC</a>, <a href="https://github.com/UICHCC/timetable-to-bg">Open Source at GitHub</a>; Current Version: <span class="text-success">v1.6</span> </p>

</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
Expand Down Expand Up @@ -214,6 +214,9 @@ <h2>Bonus Tool: <code>.ics</code> file Generator</h2>
return;
}

startDate = startDate + " 08:00:00 CST"
endDate = endDate + " 23:00:00 CST"
// enforce timezone

function getAllDate(weekday, startD, endD){
var start = new Date(startD);
Expand Down

0 comments on commit 20841b3

Please sign in to comment.