-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix the attendance workflow (#6)
* fix: Fix the attendance workflow * fix tests
- Loading branch information
Showing
26 changed files
with
534 additions
and
194 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 |
---|---|---|
|
@@ -8,6 +8,6 @@ dependencies: | |
# - php 8.* | ||
- python | ||
- pip | ||
- makim 1.8.3 | ||
- pip: | ||
- makim==1.8.2 | ||
- pygments |
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,5 +1,13 @@ | ||
<?php | ||
|
||
require_once "./lib/settings.php"; | ||
|
||
global $URL_BASE; | ||
|
||
// Redirect to templates/index.php | ||
header("Location: templates/attendance/log.php"); | ||
$params = str_replace("+", "%2B", $_SERVER['QUERY_STRING']); | ||
$url = "{$URL_BASE}/templates/attendance/log.php?{$params}"; | ||
|
||
header("Location: {$url}"); | ||
exit; // Make sure to exit after the redirection | ||
?> |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
function convert_from_utc0(DateTime $datetime): DateTime { | ||
$datetime_original = new Datetime( | ||
$datetime->format('Y-m-d H:i:s'), | ||
new DateTimeZone('UTC') | ||
); | ||
|
||
$datetime_original->setTimezone(new DateTimeZone('America/La_Paz')); | ||
return $datetime_original; | ||
} | ||
|
||
function convert_to_utc0(DateTime $datetime): DateTime { | ||
$datetime_original = new Datetime( | ||
$datetime->format('Y-m-d H:i:s'), | ||
new DateTimeZone('America/La_Paz') | ||
); | ||
|
||
$datetime_original->setTimezone(new DateTimeZone('UTC')); | ||
|
||
return $datetime_original; | ||
} | ||
|
||
?> |
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,4 +1,7 @@ | ||
<?php | ||
|
||
date_default_timezone_set("America/La_Paz"); | ||
|
||
require_once __DIR__ . "/dotenv.php"; | ||
|
||
|
||
|
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
Oops, something went wrong.