Alexander Makarov
6949992246
Simplified tests directory structure a bit
10 years ago
Carsten Brandt
7325fdd7ed
better fix for #5448 not using customized DateTime class
...
fixes #6263 and has no problem with PHP Bug:
> it is a PHP bug: https://bugs.php.net/bug.php?id=45543
> Fixed in this commit: php/php-src@22dba2f#diff-7b738accc3d60f74c259da18588ddc5dL2996
>
> Fixed in PHP >5.4.26 and >5.5.10. http://3v4l.org/mlZX7
10 years ago
Carsten Brandt
41fca90cce
split formatter test
10 years ago
Carsten Brandt
6a8f4b0e50
fixed date formatter to display date-only values correctly
...
fixes #5448
10 years ago
Carsten Brandt
8039026ae2
added Formatter::defaultTimeZone to allow non UTC-values in DB
...
fixes #5683
10 years ago
Alexander Makarov
327dde72f4
Fixes #5467 : Added ability to pass HTML tag options to `asEmail()`, `asImage()` and `asUrl()` methods of `yii\i18n\Formatter`
10 years ago
Alexey Kolmakov
ce4bf84452
#5467 Allow pass options to Html:a in Formatter:asUrl
10 years ago
Carsten Brandt
dfc4de877f
ensure integer is formatted without fraction digits
...
fixes #5179
10 years ago
Serge Bezborodov
76ade0f6b0
Changed order of attributes setting in Formatter
...
close #5261
10 years ago
Carsten Brandt
2fbce2fa25
improved formatter test coverage
10 years ago
Carsten Brandt
e305f0842c
skip unsupported things on 32bit system
10 years ago
Carsten Brandt
6267b9ee1a
Fixed issue with timezone conversion in formatter
...
related to #5128
10 years ago
Carsten Brandt
3b0f561480
format timestamps with invalid date input
...
fixes #4989
10 years ago
Kartik Visweswaran
18b57af5ac
Better date parsing and formatting including 32 bit support
...
Enhances `normalizeDateTimeValue` to return a DateTime object instead of a converted double value, that fails. The DateTime object input is supported by 32 bit, 64 bit, as well as the `IntlDateFormatter` to format all years. (including fixing of the Y2K38 bug). Fixes issue in #4989 .
close #5000
10 years ago
Carsten Brandt
3ff548a442
Refactored DateValidator to support ICU format
10 years ago
Carsten Brandt
9edf938bf1
Added tests for empty values
...
use "just now" for empty time difference in Formatter.
fixed wrong language name definition
10 years ago
Carsten Brandt
be655d4f39
extracted date format converting to a helper class
...
adding and reworking the conversion of:
- ICU to PHP
- PHP to ICU
- ICU to JUI
- PHP to JUI
10 years ago
Carsten Brandt
b5af2f6ab3
fixed size format plural rule to not format number itself
...
This fix ensures the format configured in the formatter class is used in the message instead
of the default ICU format.
fixes #4960
10 years ago
Carsten Brandt
c8f8f654ce
fixed paragraph formatting
10 years ago
Carsten Brandt
47648a4b9f
final cleanup
10 years ago
Carsten Brandt
3f75728083
refactored size format
10 years ago
Carsten Brandt
916d2c182d
ensure some BC
...
ensure some features that were recently added to formatter keep working after refactoring
10 years ago
Carsten Brandt
9418c9d236
unit tests and some locale depended fixes
10 years ago
Carsten Brandt
8d397e7f0e
finished currency formatter
10 years ago
Carsten Brandt
f8f0ff5445
moved formatter to i18n namespace
10 years ago
Carsten Brandt
065db64db3
finsihed formatter implementation
...
neads cleanup
10 years ago
Carsten Brandt
2a15ae12e6
refactored number formatting
10 years ago
Carsten Brandt
a4e86c02de
date formatter iteration
10 years ago
Carsten Brandt
7f1f759472
small doc adjustments
10 years ago
Carsten Brandt
62e7c3e9a6
fixed some inconsistnecies in HHVM tests
...
exclude parts that have different default values
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Kai Mindermann
46b553f012
fixes formatter doing one division too much, fixes #4427
10 years ago
Kai Mindermann
f3520187d6
formatter: adds unit tests for base 1000, fixes #4412
10 years ago
Carsten Brandt
d7b4ea859b
refactored date formatting functions
...
- removed unformat methods, they do not belong here
- removed db format, which is also not purpose of this class
- refactored the whole set of methods to be simpler and better
maintainable
More unit tests needed.
10 years ago
Erik_r
0a10e92f92
#2359 one test failed in Travis because standard medium date format is different in Travis then on my locale PC.
10 years ago
Erik_r
299d991a2e
#2359 testcases adapted and compatibility to old tests improved
10 years ago
Qiang Xue
3616d1f0d1
Fixes #2816 : Changed default date and time format of `yii\base\Formatter` to `Y-m-d` and `H:i:s`
11 years ago
Alexander Makarov
6054ede16a
Fixed phpdoc, removed unit tests for Formatter asRelativeTime that were relative to current time since it was impossible to specify correct expected values
11 years ago
David Renty
91e4ad5978
PSR-2 compliance
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
David Renty
cb3eb9c6d8
Added support for inverted intervals (future time) and unit tests
11 years ago
Alexander Makarov
1f6a823073
Short array syntax
11 years ago
Carsten Brandt
949dda5fdb
tagged tests with @group tags
11 years ago
Qiang Xue
60ba20491e
Added support for passing parameters to the format method.
11 years ago
Qiang Xue
3eccd850fe
Added Formatter::nullDisplay.
11 years ago
Alexander Kochetov
9bb0ce4b1c
Html helper pure HTML 5 mode without support old standarts
11 years ago
Carsten Brandt
8b6447876a
refactored numberformatting in base\Formatter
...
added decimalSeparator and thousandSeparator properties.
issue #48
12 years ago
Qiang Xue
9a97037012
Finished Formatter.
12 years ago
Qiang Xue
000fdc3de0
formatter WIP.
12 years ago