Laurent Destailleur
37c55004e7
Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0
2024-10-03 16:17:27 +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
Laurent Destailleur
6ca2e746ca
Fix DOS attack by using num_public_holiday() - repeated sql in loop
2024-09-23 13:09:45 +02:00
Laurent Destailleur
da577e8a24
Debug look and feel v20
2024-06-12 00:45:23 +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
Charlène Benke
c035536a6c
pentecote renamed on pentecost ( #29712 )
...
in dictionnary table we use pentecost, not pentecote
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-05-21 17:08:29 +02:00
Frédéric FRANCE
2279fa5d2d
clean code ( #29713 )
...
* clean code
* fix typo
* fix
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-05-21 17:06:26 +02:00
MDW
e2b0295308
Adjust to real typings
2024-03-27 10:18:34 +01:00
MDW
fab3a7a02b
Fix typing with casts
2024-03-22 09:52:38 +01:00
MDW
d591d258f1
Fix null return by returning 0
2024-03-20 21:58:44 +01:00
MDW
c0e8e053b8
Fix port arg to count by adding typing information
2024-03-19 02:59:09 +01:00
MDW
25dd2433a1
Fix PhanPluginPrintfIncompatibleArgumentType by typing/casting
2024-03-17 18:56:47 +01:00
Laurent Destailleur
f9f549ef26
Work on generic filter
2024-02-17 04:07:34 +01:00
MDW
93881d8b2d
Qual: correct/improve typing annotations ( #28155 )
...
# Qual: correct/improve typing annotations
Improve typing annotations in date library.
2024-02-13 08:51:46 +01:00
Christophe TREMBLAY-GUILLOUX
df1a14e905
Merge branch 'develop' of github.com:Dolibarr/dolibarr into develop
2024-01-26 15:13:11 +01:00
Christophe TREMBLAY-GUILLOUX
3ae575348b
MINOR: bad description
2024-01-26 10:35:25 +01:00
Frédéric France
03e29c6960
fix param
2024-01-20 09:22:38 +01:00
Laurent Destailleur
47bb0cd17a
Merge pull request #27544 from thibdrev/patch-1
...
fix phpstan
2024-01-15 21:54:31 +01:00
thibdrev
f5e0a9c411
phpstan
...
Function dol_get_first_day() should return int but returns string.
Function dol_get_last_day() should return int but returns string.
2024-01-15 20:56:59 +01:00
thibdrev
f41a5bc752
phpstan
...
Function dol_get_first_day() should return int but returns string.
Function getWeekNumber() should return int but returns string.
2024-01-15 18:54:33 +01:00
Laurent Destailleur
3ac7706a63
Clean code
2024-01-15 11:28:25 +01:00
MDW
89004f7e03
Qual: Spelling htdocs/core ( #27491 )
...
Highlights:
- initialY in pdf_standard.modules.php was unused
- remove (otherwise -> initially) (+same in other file)
2024-01-13 19:48:20 +01: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
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