aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/datetime.php
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'develop-olympus' into developNils Adermann2013-02-241-1/+1
| | | | | | | | * develop-olympus: [ticket/11361] Make sure that array passed to strtr() has the proper format. Conflicts: phpBB/includes/session.php
* [feature/new-tz-handling] Rename $user->tz back to $user->timezoneJoas Schilling2012-07-181-2/+2
| | | | PHPBB3-9558
* [feature/new-tz-handling] Require user argument on phpbb_datetimeJoas Schilling2012-07-161-4/+3
| | | | PHPBB3-9558
* [feature/new-tz-handling] Fix code and doc layoutJoas Schilling2012-06-201-2/+4
| | | | PHPBB3-9558
* [feature/new-tz-handling] Trim comment length and remove leading underscoresJoas Schilling2012-06-191-4/+5
| | | | PHPBB3-9558
* [feature/new-tz-handling] Remove function getTimestamp() as we require php 5.3Joas Schilling2012-06-181-18/+0
| | | | PHPBB3-9558
* [feature/new-tz-handling] Fix documentation in includes/datetime.phpJoas Schilling2012-06-181-7/+8
| | | | PHPBB3-9558
* [feature/new-tz-handling] Do not use underscore as prefix for userJoas Schilling2012-06-181-9/+9
| | | | PHPBB3-9558
* [feature/new-tz-handling] Correct a bug preventing multiple formats working.Chris Smith2012-03-141-14/+14
| | | | PHPBB3-9558
* [feature/new-tz-handling] Removed line that was missed in cc312d8.Chris Smith2012-03-141-2/+0
| | | | PHPBB3-9558
* [feature/new-tz-handling] Fix bug from 3.0 formatting future dates.Chris Smith2012-03-141-1/+2
| | | | | | | Future dates can get formatted as 'less than a minute ago' if they occur in the future on the same minute as the current minute. PHPBB3-9558 PHPBB3-9712
* [feature/new-tz-handling] Check the is_short flag stored inside the format ↵Chris Smith2012-03-141-3/+2
| | | | | | | | | array. Reuse the existing check store in the format array to determine if the date time format supports relative formatting. PHPBB3-9558
* [feature/new-tz-handling] Fix undefined variable.Chris Smith2012-03-141-0/+2
| | | | PHPBB3-9558
* [feature/new-tz-handling] Explained name of phpbb_datetime::getTimestamp()Chris Smith2012-03-141-0/+1
| | | | | | | phpbb_datetime::getTimestamp() exists purely to support PHP 5.2 which does not implement the method. PHPBB3-9558
* [feature/new-tz-handling] Added phpbb_datetime::__toString().Chris Smith2012-03-141-0/+10
| | | | | | | New phpbb_datetime::__toString() magic method that formats the datetime according to the users default settings. PHPBB3-9558
* [feature/new-tz-handling] Comment and optimise phpbb_datetime::format().Chris Smith2012-03-141-3/+10
| | | | | | | | | - Added comments explaining the complex time computations for rendering relative date times. - Replaced some repeated method invokations with variables. PHPBB3-9558
* [feature/new-tz-handling] Correct typo in member comment.Chris Smith2012-03-141-1/+1
| | | | PHPBB3-9558
* [feature/new-tz-handling] Renamed old variables and removed extra conditional.Chris Smith2012-03-141-24/+19
| | | | PHPBB3-9558
* [feature/new-tz-handling] Use phpbb_datetime rather than phpbb_DateTime.Chris Smith2012-03-141-2/+2
| | | | PHPBB3-9558
* [feature/new-tz-handling] Wrapper around DateTime for new date time handling.Chris Smith2012-03-141-0/+160
Wrapped PHP's DateTime with some extensions for supporting phpBB's relative date formats and provided the DateTime::getTimestamp() method to PHP < 5.3. PHPBB3-9558