Rémi Lanvin
c68668b195
Fix incorrect calculation from partially filled cache
...
When resuming calculation from a partially filled cache,
if the time is the last second of the day, this causes the generator
to consider the wrong frame of reference and therefore generate
the wrong occurrences.
Ref #160
2025-02-21 09:15:24 +01:00
Viktor Szépe
bef9568de9
Fix typos
2024-06-27 09:13:29 +02:00
Rémi Lanvin
a2dd785693
Fix insufficient type detection for FREQ and WKST
...
In some cases non-string types would end up passed to strtoupper
which causes a deprecation warning from PHP 8.3.
There might be other places where stricter type check is needed
Ref #149
2024-06-23 09:24:58 +02:00
Rémi Lanvin
4b19d8ef60
Fix utf8 C locale detection wihout intl
2024-06-23 09:01:48 +02:00
Rémi Lanvin
9fd062ae06
Update changelog
2024-06-08 07:39:51 +02:00
Jeff Bierschbach
bef5c05e43
Add human readable time of day option
2023-06-14 19:35:17 +02:00
Jeff Bierschbach
ccbc749f65
Humanreadable gets monthly wrong
2023-06-07 15:06:42 +02:00
Joel Stein
fa13bf3f6b
Fix #120 Reset time to midnight to fix timezone offsets.
2023-01-06 11:01:00 +01:00
Janusz Paszyński
601e2cccfb
deprecation messages supress without braking backward compatibility
2022-08-04 09:00:03 +02:00
rlanvin
2221e8cdac
Fix #103 createFromRfcString forced uppercase
2022-05-03 15:11:22 +02:00
rlanvin
5ef9eedb5d
Fix #104 remove microseconds from date input
2022-04-22 10:45:04 +02:00
Cédric Anne
30f9170f3a
Fix compatibility with PHP 8.1 ( #100 )
...
Use #[\ReturnTypeWillChange] to suppress deprecation warnings with PHP 8.1
Add PHP 8.1 to test matrix
2021-10-06 13:18:34 +02:00
rlanvin
f77c9644c6
Fix double space bugs with 'and'
2021-07-04 16:26:37 +02:00
roikedem
d118a932fc
Add Hebrew translation
...
i18n add he, remove automatic space after "and"
add shortened weekdays names for lists
2021-07-04 16:24:41 +02:00
rlanvin
63b55000b4
Fix typos and update CHANGELOG for 2.2.2
2021-01-09 14:19:43 +01:00
rlanvin
dba3b916a5
Fix #90 Support for DateTimeImmutable
2020-12-09 23:13:35 +01:00
rlanvin
2ed1d53333
Fix #78 RRule size limited to 1460
2019-11-01 11:48:41 +00:00
rlanvin
6332b7e44a
Increase test code coverage
2019-10-05 01:41:13 +01:00
rlanvin
4af70c3bd7
Replace static array variables with array constants
2019-09-01 20:11:52 +01:00
rlanvin
deed61e0c2
Remove unused code and fix outdated comments
2019-09-01 19:50:21 +01:00
Maria Górska
197166a601
Fix locale format for i18n files
2019-05-04 12:02:59 +02:00
rlanvin
a5bda44f59
Remove space inside parenthesis to be closer to PSR-2
2019-01-14 13:09:43 +00:00
Ricky
58b9bd1115
Add remove/clear functions for ExDates and RDates ( #66 )
...
- Cleanup tests and comment
- Add removeExdate and clearExdates
- Add removeDate and clearDates for RDATEs
2019-03-17 10:45:34 +01:00
rlanvin
3d72c9efaf
Add helpers methods
...
Ref #60
2019-01-13 13:44:01 +00:00
rlanvin
200b923c9e
Add custom_path option to humanReadable
...
If the option is present, it'll first look for a file in this folder
before looking into the default folder.
Fix #56
2019-01-13 10:47:43 +00:00
rlanvin
7c93c0e48a
Rewrite the core algorithm to use a generator
...
Drop compatibility with PHP < 5.6
Ref #43
2019-01-13 10:04:03 +00:00
rlanvin
1373df401e
Release 1.6.3
2019-01-13 09:49:03 +00:00
David Stone
9fd853882c
Fix error when timezone is an offset instead of an olson name. ( #61 )
...
* Fix error when timezone is an offset instead of an olson name.
intl returns the error "datefmt_create: no such time zone: '-05:00': U_ILLEGAL_ARGUMENT_ERROR"
if a DateTime object is passed as the second parameter into the RRule constructor.
IntlDateFormatter::create() needs the offset to be prefixed with GMT, go figure.
2019-01-13 10:29:25 +01:00
Dean Petty
9a4f2492b0
Typo fix
...
Just fixing a typo in a function description.
2018-10-20 08:33:39 +02:00
Katy Ereira
39d229d0ce
Null check to prevent 0 (false) values being lost. ( #50 )
2018-04-13 10:03:07 +01:00
Ricardo Rivera
6328e604ea
fixed Warning in RRule->humanReadable() ( #44 )
...
* only LC_ALL in setlocale
[ Warning: Use of undefined constant LC_MESSAGES - assumed 'LC_MESSAGES' (this will throw an Error in a future version of PHP) in ...vendor\rlanvin\php-rrule\src\RRule.php on line 2340 ]
LC_MESSAGES is not available. It is available only if PHP was compiled with libintl.
use LC_ALL instead.
2018-02-27 10:32:52 +00:00
ShoresOfNowhere
8049f629f4
Option to omit until part in humanreadable ( #36 )
2017-10-11 11:29:00 +01:00
rlanvin
fa48bc4fa2
Fix typo in variable name
...
Fix #34
2017-05-15 10:14:37 +01:00
rlanvin
c220aee917
Throw exception when passing float instead of int
...
e.g. INTERVAL=1.5
Before, it used to cast it silently
2017-05-09 17:02:03 +01:00
rlanvin
145c0817f7
Fix tests for PHP 5.6 and PHP 7.1
...
Fix bugs related to microseconds in PHP 7.1
2017-05-07 19:46:49 +01:00
rlanvin
e2f42382d4
Add $dtstart optional arg when creating from a string
2017-05-06 13:37:26 +01:00
rlanvin
7437503a73
Add $limit to getOccurrences and getOccurencesBetween
2017-05-06 13:37:21 +01:00
rlanvin
59d9226618
Rename 'dtsart' option to 'include_start' in humanReadable
2017-04-11 16:55:46 +01:00
rlanvin
67d4a5dc98
Refactor RFC string parsing
...
Add the possibility to construct a RSet from a string
Ref #26
2017-04-11 16:44:50 +01:00
rlanvin
a6d01f4036
Make RFC parser more strict
2017-04-11 14:20:42 +01:00
rlanvin
9b4681793d
Add explicit_infinite and dtstart options to humanReadable
2017-04-11 11:20:20 +01:00
rlanvin
51c7c5c56d
Fix bug in RFC parser generating a invalid timezone
...
strtoupper() was creating invalid timezone, which would make
humanreadable() fail.
2017-03-29 14:20:00 +01:00
rlanvin
c29db6270e
Refactor i18nLoad to attept to solve #24
...
- Rework `RRule::i18nLoad()` to accept locales such as `en_sg` and use `Locale::parseLocale` when possible
- Fix `humanReadable` fails with `intl` enable when the timezone is "Z"
2017-02-03 00:35:09 +02:00
rlanvin
0b3a2c9a32
Fix #25
...
- Fix parser handling of UNTIL when DTSTART is not provided
- Accept invalid RFC strings generated by the JS lib but triggers a Notice message
2017-02-02 19:30:10 +02:00
Brian
2b77002988
Update exception message for UNTIL parse error
2017-01-22 13:05:42 -05:00
rlanvin
0785c6ce7d
Make offsetGet throw exception for illegal offset
...
Ref issue #22
2017-01-06 16:30:35 +02:00
rlanvin
472462e0bb
Add comments
2017-01-06 16:03:00 +02:00
rlanvin
dbcff3eb27
Fix a undefined index error in the RFC parser
2016-11-11 20:20:09 +02:00
rlanvin
30a3dad32a
Comments and coding style
2016-08-31 15:35:01 +03:00
=
5fbd1bf78c
Add getRule() method to return original rule array
2016-08-28 17:51:58 +01:00