summaryrefslogtreecommitdiff
path: root/includes/components/planner.inc
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-06-10 11:06:53 +0200
committerRaindropsSys <contact@minteck.org>2023-06-10 11:06:53 +0200
commit2e7294c83c6388e3855ce787f0a18c20ed652131 (patch)
tree7e3a4ee156fa93954a501b0f112fa2d1055064f0 /includes/components/planner.inc
parent85145d4a0f7ddd7717af495cbd3f42891042d047 (diff)
downloadpluralconnect-2e7294c83c6388e3855ce787f0a18c20ed652131.tar.gz
pluralconnect-2e7294c83c6388e3855ce787f0a18c20ed652131.tar.bz2
pluralconnect-2e7294c83c6388e3855ce787f0a18c20ed652131.zip
Updated 12 files and added includes/system/compare.inc (automated)
Diffstat (limited to 'includes/components/planner.inc')
-rw-r--r--includes/components/planner.inc34
1 files changed, 20 insertions, 14 deletions
diff --git a/includes/components/planner.inc b/includes/components/planner.inc
index f005f52..b5fc7a5 100644
--- a/includes/components/planner.inc
+++ b/includes/components/planner.inc
@@ -482,23 +482,29 @@
</style>
<h2>Front planner</h2>
+
+ <div class="alert alert-warning">
+ <b>The fronting schedule will be removed on June 15<sup>th</sup>.</b> Due to internal discussion, we have decided to remove the fronting schedule as it is causing a lot of trouble inside the respective systems. Archives will be kept in the database.
+ </div>
+
<table id="planner">
<tbody>
<?php
- day("Yesterday", -1);
- day("Today", 0);
- day("Tomorrow", 1);
- day(date('l j', time() + 86400 * 2), 2);
- day(date('l j', time() + 86400 * 3), 3);
- day(date('l j', time() + 86400 * 4), 4);
- day(date('l j', time() + 86400 * 5), 5);
- day(date('l j', time() + 86400 * 6), 6);
- day(date('l j', time() + 86400 * 7), 7);
- day(date('l j', time() + 86400 * 8), 8);
- day(date('l j', time() + 86400 * 9), 9);
- day(date('l j', time() + 86400 * 10), 10);
- day(date('l j', time() + 86400 * 11), 11);
- day(date('l j', time() + 86400 * 12), 12);
+
+ if (time() - 86400 < 1686787200) day("Yesterday", -1);
+ if (time() < 1686787200) day("Today", 0);
+ if (time() + 86400 < 1686787200) day("Tomorrow", 1);
+ if (time() + 86400 * 2 < 1686787200) day(date('l j', time() + 86400 * 2), 2);
+ if (time() + 86400 * 3 < 1686787200) day(date('l j', time() + 86400 * 3), 3);
+ if (time() + 86400 * 4 < 1686787200) day(date('l j', time() + 86400 * 4), 4);
+ if (time() + 86400 * 5 < 1686787200) day(date('l j', time() + 86400 * 5), 5);
+ if (time() + 86400 * 6 < 1686787200) day(date('l j', time() + 86400 * 6), 6);
+ if (time() + 86400 * 7 < 1686787200) day(date('l j', time() + 86400 * 7), 7);
+ if (time() + 86400 * 8 < 1686787200) day(date('l j', time() + 86400 * 8), 8);
+ if (time() + 86400 * 9 < 1686787200) day(date('l j', time() + 86400 * 9), 9);
+ if (time() + 86400 * 10 < 1686787200) day(date('l j', time() + 86400 * 10), 10);
+ if (time() + 86400 * 12 < 1686787200) day(date('l j', time() + 86400 * 11), 11);
+ if (time() + 86400 * 12 < 1686787200) day(date('l j', time() + 86400 * 12), 12);
?>
</tbody>