Commit Graph

203 Commits

Author SHA1 Message Date
Laurent Destailleur
8dc50b4c5a Merge remote-tracking branch 'origin/18.0' into 19.0 2025-07-31 23:16:27 +02:00
Laurent Destailleur
b226894e36 Merge remote-tracking branch 'origin/17.0' into 18.0 2025-07-31 23:14:31 +02:00
Laurent Destailleur
3b0a4c9fa9 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2025-07-31 23:11:32 +02:00
VIAL-GOUTEYRON Quentin
154a25f8cb Enhance working days calculation to incorporate half-day adjustments and optimize public holiday checks (#34552)
* "Enhance working days calculation to incorporate half-day adjustments and optimize public holiday checks"

* "Add test cases for num_open_day() to validate half-day and weekend boundary scenarios"

* "Update DateLibTest to include Saturday and Sunday as non-working days in test setup"
2025-07-31 22:59:29 +02:00
Laurent Destailleur
6a09e7c91a Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-10-03 16:15:06 +02:00
Sylvain Legrand
5d58a33f37 Fix tz array (#31240)
The list of time zones included in the 'get_tz_array()' function no longer matches the list of zones supported by PHP!
See the pages "https://www.php.net/manual/fr/timezones.php"

When using these values, this caused a 500 error: "PHP Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone (Pacific/Enderbury) " for example =>
$arraytz = get_tz_array();
foreach ($arraytz as $key => $value) {
$date = new DateTime();
$date->setTimezone(new DateTimeZone($value));
}

When several zone names could be used for the same time zone, I favored the canonical name (The primary, preferred zone name).
See the table "https://en.wikipedia.org/wiki/List_of_tz_database_time_zones"
2024-10-03 15:38:41 +02:00
Charlène Benke
79c2b9ea8e Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-05-21 17:10:18 +02:00
Laurent Destailleur
e5f5c499a4 Update date.lib.php 2023-12-28 12:42:15 +01:00
Idayat NOUFOU
a2a9d8d9ad Fix: Unsupported operand types 2023-12-28 10:49:45 +01:00
Laurent Destailleur
b28ae5d8d3 Clean code 2023-12-27 12:12:20 +01:00
Laurent Destailleur
1babae58a4 Fix with php-cs-fixer 2023-12-04 12:05:28 +01:00
Laurent Destailleur
53dab922fd Fix php8.2 warnings 2023-11-27 11:39:32 +01:00
Laurent Destailleur
d1a80920ff Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2023-11-20 19:53:50 +01:00
Laurent Destailleur
042d583070 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2023-11-17 12:03:38 +01:00
Laurent Destailleur
6ea48ac22a Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2023-11-17 12:02:21 +01:00
Maxime Kohlhaas
de0b733430 Fix : missing getEntity for hrm public holiday (#26627) 2023-11-16 23:27:20 +01:00
Laurent Destailleur
eae4dbd3c3 Fix duration 2023-08-08 13:03:36 +02:00
Laurent Destailleur
e489e10b65 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-02-17 16:05:12 +01:00
Laurent Destailleur
f8c3b9ff5b Fix trans of "d" 2023-02-16 22:11:41 +01:00
Laurent Destailleur
97061a9a92 NEW Use a cache file for external RSS in calendar 2023-01-13 17:17:23 +01:00
Laurent Destailleur
99d56f74ae NEW Can set a monthly frequency (or multiple) in cron tasks. 2022-10-18 19:49:02 +02:00
stickler-ci
9ed4131d20 Fixing style errors. 2022-09-15 16:10:13 +00:00
javieralapps4up
3bedbec81b Update date.lib.php
If $duration_unit = 's', it shows a 500 error
2022-09-15 18:02:24 +02:00
atm-lena
6e5d395ac8 Merge branch 'develop' of github.com:Dolibarr/dolibarr into develop_NEW_Service_DefaultWorkstation 2022-08-24 11:38:19 +02:00
Laurent Destailleur
b1b708b9ef Merge pull request #21733 from SylvainLegrand/Fix_improve_date_library
Fix : improve date library
2022-08-14 15:31:28 +02:00
stickler-ci
f61000f0c7 Fixing style errors. 2022-08-12 15:25:15 +00:00
Sylvain Legrand
0066dfd87c Fix : improve date library 2022-08-12 17:23:41 +02:00
stickler-ci
a41dee9e06 Fixing style errors. 2022-07-12 08:09:45 +00:00
atm-lena
c068eebc43 Add function "convertDurationtoHour" 2022-07-12 10:03:31 +02:00
Laurent Destailleur
862ca7cf04 Debug v16 2022-06-14 14:39:32 +02:00
Laurent Destailleur
89ffe5baba Clean code for param of dol_stringtotime() 2022-02-11 14:07:10 +01:00
Scrutinizer Auto-Fixer
5567310e44 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2021-10-25 20:07:31 +00:00
Frédéric FRANCE
d1c9877c41 fix missing code comment 2021-10-22 07:02:44 +02:00
Laurent Destailleur
f7b12208d1 Merge pull request #18802 from javieralapps4up/14.0
Close: #18801 Jan-30 + 1m IS NOT Mar-2
2021-10-22 00:01:42 +02:00
javieralapps4up
2ca0a1facf Update date.lib.php 2021-10-20 00:36:24 +02:00
javieralapps4up
11723c2cd0 Update date.lib.php
Without words, sorry
2021-09-27 14:49:22 +02:00
javieralapps4up
c4f1eb0c46 Update date.lib.php
Fix my error
2021-09-27 14:32:03 +02:00
stickler-ci
e5cff0ede1 Fixing style errors. 2021-09-22 16:07:36 +00:00
javieralapps4up
e74043d48e Close: #18801 Jan-30 + 1m IS NOT Mar-2
Close: #18801 related to avoid this behaviour https://bugs.php.net/bug.php?id=74013
2021-09-22 17:56:31 +02:00
Laurent Destailleur
047bbbb298 NEW Can set/unset the usual working day of the week 2021-08-05 14:42:28 +02:00
Laurent Destailleur
65110411ac Doc 2021-06-20 17:20:12 +02:00
Laurent Destailleur
f486595e13 Fix dolSqlDateFilter 2021-06-20 16:55:22 +02:00
Laurent Destailleur
61df76dd9a Fix pb in date format %a %b when using a negative timezone
Enhance date management and unit tests.
2021-04-19 12:48:08 +02:00
Laurent Destailleur
8526ca5304 Merge pull request #17121 from 0x00FE/add-friday-holiday
NEW Add support for Friday as a holiday
2021-04-10 15:30:57 +02:00
César de la Cal Bretschneider
eadd8defaf Good friday is a holiday 2021-04-10 11:39:48 +02:00
Ahmad Hadeed
63f7369adb Fixing 'stickler-ci' complaint, function description not in order 2021-04-09 21:16:24 +03:00
Ahmad Hadeed
20e51016ed fixing function description comment to satisfy 'stickler-ci' 2021-04-09 21:11:37 +03:00
Ahmad Hadeed
937fe333f1 Moving Friday to end of function declaration to maintain backward compatibility 2021-04-09 20:49:39 +03:00
Ahmad Hadeed
f2f2aed6cd Fix 3 weekend holiday behavior after adding support to Friday as a holiday. 2021-04-05 22:05:22 +03:00
stickler-ci
caa2facd47 Fixing style errors. 2021-04-05 17:09:25 +00:00