Merge branch 'wavelog:master' into dev_sticky_note

This commit is contained in:
Szymon Porwolik
2025-10-26 10:31:44 +01:00
committed by GitHub
86 changed files with 21209 additions and 17707 deletions

View File

@@ -77,10 +77,14 @@ class Logbook extends CI_Controller {
// Normalize the date only if it's not empty
if (!empty($date)) {
// Characters '/' and ',' are not URL safe, so we replace
// them with '_' and '%'. Switch them back here.
if (strpos($date, '_') !== false) {
// Replace slashes with dashes for URL processing
$date = str_replace('_', '/', $date);
}
if (strpos($date, '%') !== false) {
$date = str_replace('%', ',', $date);
}
// Get user-preferred date format
if ($this->session->userdata('user_date_format')) {
$date_format = $this->session->userdata('user_date_format');