Paul Klimov
40e5702b6b
Fixes #5108 `DateValidator` resets `$timestampAttribute` value on empty attribute ( #14242 )
...
* `yii\validators\DateValidator` now resets `$timestampAttribute` value on empty validated attribute value
* array-value test at `DateValidatorTest` restored
7 years ago
Robert Korulczyk
31e321b9b2
Remove unused imports. ( #14096 )
8 years ago
gagatust
6397791513
Fixed whitespaces to match code style [skip ci]
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
cuiliang
c0df003ac0
merge from master
8 years ago
Carsten Brandt
00d506c398
completed implementation for #7177
...
added TYPE_TIME and default values for format to be chosen from
corresponding formatter variable
fixes #7177
close #10778
9 years ago
Robbert Jan
bb0ef88860
Enhancement for DateValidator ( #7177 , #10165 )
...
Added parameter to define if checking for 'date' or 'dateTime'
and updated parseDateValueIntl($value, $format) to facilitate
this validation based on defined type.
Added unit tests to for validating dateTime values when using short format validation.
close #10778
9 years ago
Klimov Paul
779b1e90ce
`yii\validators\DateValidator` skip validation for `timestampAttribute`, if it is already in correct format
9 years ago
╃巡洋艦㊣
586684b050
2.0.5 bf7edc5
9 years ago
Carsten Brandt
9cc0e5d89d
even more 32bit friendly test
...
issue #8584
9 years ago
Carsten Brandt
8e44674e7b
fixed another test to work on 32bit
...
issue #8584
9 years ago
Carsten Brandt
ab9326dd26
fixed test for 32bit systems
...
fixes #8584
9 years ago
Carsten Brandt
8eaacd7320
added comment to datevalidator test
...
issue #8584
9 years ago
Nikola Kovacs
3f24954659
Added min/max option to DateValidator.
...
Refs #7514
close #8115
10 years ago
Carsten Brandt
1c41c2bd58
added DateValidator::$timestampAttributeTimeZone
...
this also makes DateValidator completly functional for validating values that include time.
issue #5053
10 years ago
Carsten Brandt
d60445c066
Add DateValidator::$timestampAttributeFormat
...
includes refactoring of the formatting method to fix some major timezone issues.
fixes #5053
close #6820
10 years ago
Alexander Makarov
6949992246
Simplified tests directory structure a bit
10 years ago
Carsten Brandt
ba6bce4e2d
fixed DateValidator to work with multibyte strings
...
fixes #6835
10 years ago
Yoyon Cahyono
8b5e16ed56
compare position at which date value parsing ended with its string length to ensure validation when using php intl extension to parse date value
...
- fixes #6553
- Add additional testValidateAttributeICUFormat() test case using "2012-12-12foo" for "yyyy-MM-dd" date format
- close #6835
10 years ago
╃巡洋艦㊣
1468bd4d3d
version 2.0.1 84b42ab
10 years ago
Carsten Brandt
b8c12307f1
added test for #5962
10 years ago
Carsten Brandt
45e472ccb0
added unit tests for #5249
10 years ago
Carsten Brandt
3ff548a442
Refactored DateValidator to support ICU format
10 years ago
Carsten Brandt
83a63f2346
fixed wrong client validation issue in numbervalidator
...
fixes #3118
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
AlexGx
32d0768919
style fixes with phpcs:yii2
11 years ago
Qiang Xue
cb4a8c764c
Refactored validators.
11 years ago
Alexander Makarov
c127171efb
Fixes #1003 : DateValidator returned true for invalid dates
11 years ago
Carsten Brandt
3631890cba
fixed failing validator tests
11 years ago
Alexander Makarov
1f6a823073
Short array syntax
11 years ago
Suralc
0c45765e7d
Added tests for uncovered lines.
11 years ago
Suralc
a81480d309
Improved ValidatorTest organization.
11 years ago
Suralc
777ff792c4
DateValidatorTest
11 years ago