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
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
Ahmad Hadeed
235725b528
Add support for Friday as a holiday and some comment alignment fixes
2021-04-05 19:57:33 +03:00
Laurent Destailleur
3cbced439a
Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
htdocs/admin/tools/listevents.php
htdocs/compta/bank/line.php
htdocs/compta/facture/class/facture-rec.class.php
htdocs/compta/facture/class/facture.class.php
htdocs/compta/paiement/cheque/card.php
htdocs/core/class/commonobject.class.php
htdocs/core/class/extrafields.class.php
htdocs/core/lib/date.lib.php
htdocs/core/lib/ticket.lib.php
htdocs/core/modules/mailings/modules_mailings.php
htdocs/core/tpl/extrafields_view.tpl.php
htdocs/core/tpl/objectline_view.tpl.php
htdocs/cron/list.php
htdocs/expedition/card.php
htdocs/mrp/mo_list.php
htdocs/product/stock/productlot_card.php
htdocs/public/emailing/mailing-read.php
htdocs/public/emailing/mailing-unsubscribe.php
htdocs/ticket/list.php
test/phpunit/FactureRecTest.php
2021-03-05 19:29:09 +01:00
Laurent Destailleur
ffa0e6c391
FIX Timezone management for datetime on list of events
2021-03-04 15:34:29 +01:00
Frédéric FRANCE
a4e25359e7
add missing rule
2021-03-01 20:37:16 +01:00
Laurent Destailleur
490faec547
FIX Timezone problems
...
Conflicts:
htdocs/core/lib/date.lib.php
test/phpunit/DateLibTest.php
2021-02-28 22:50:21 +01:00
Laurent Destailleur
ae81ab0c7c
FIX Timezone problems
2021-02-28 22:44:11 +01:00
Laurent Destailleur
5c0ea476e1
Look and feel v14
2021-02-27 12:45:07 +01:00
Frédéric FRANCE
554e449e40
code syntax core directory
2021-02-23 22:03:23 +01:00
Laurent Destailleur
7887d4cc8e
Fix price2num on all GETPOST('remise_percent')
2021-01-31 12:48:40 +01:00
Laurent Destailleur
f462e353e9
FIX #16079
2021-01-28 09:59:13 +01:00
Laurent Destailleur
b0738643fb
FIX Solve problem with TZ
2021-01-03 18:42:45 +01:00
Laurent Destailleur
e0d656e0c8
Fix phpcs
2020-12-06 18:01:23 +01:00