aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/11002] Use translating option to rename the Etc/GMT optionsJoas Schilling2012-07-211-40/+40
| | | | | | | They have the invers offset of their name. So GMT+2 has the offset -7200. To avoid additional confusion, we simply overwrite their name. PHPBB3-11002
* Merge pull request #843 from nickvergessen/feature/new-tz-handlingNils Adermann2012-07-1912-114/+598
|\ | | | | Feature/new tz handling
| * [feature/new-tz-handling] Don't use global user but make it a parameterJoas Schilling2012-07-195-8/+11
| | | | | | | | PHPBB3-9558
| * [feature/new-tz-handling] Fall back to UTC, if the timezone is invalidJoas Schilling2012-07-192-2/+17
| | | | | | | | | | | | This should avoid problems, when the board files are updated but database isn't. PHPBB3-9558
| * [feature/new-tz-handling] Add previous selected value to validation if validJoas Schilling2012-07-192-5/+39
| | | | | | | | | | | | | | | | | | | | We also add the selected timezone if we can create an object with it. DateTimeZone::listIdentifiers seems to not add all identifiers to the list, because some are only kept for backward compatible reasons. If the user has a deprecated value, we add it here, so it can still be kept. Once the user changed his value, there is no way back to deprecated values. PHPBB3-9558
| * [feature/new-tz-handling] Display suggestion when a different value is selectedJoas Schilling2012-07-191-2/+2
| | | | | | | | PHPBB3-9558
| * [feature/new-tz-handling] Remove additional marking of selected itemsJoas Schilling2012-07-181-2/+2
| | | | | | | | PHPBB3-9558
| * [feature/new-tz-handling] Move update helper function to new classJoas Schilling2012-07-181-0/+112
| | | | | | | | PHPBB3-9558
| * [feature/new-tz-handling] Delete old variable which is not used anymoreJoas Schilling2012-07-181-3/+0
| | | | | | | | PHPBB3-9558
| * [feature/new-tz-handling] Rename $user->tz back to $user->timezoneJoas Schilling2012-07-185-13/+13
| | | | | | | | PHPBB3-9558
| * [feature/new-tz-handling] Remove "timezone might be numeric"Joas Schilling2012-07-182-11/+0
| | | | | | | | | | | | As we updated all of the used values, there really shouldn't be one anymore. PHPBB3-9558
| * Merge branch 'develop' of git://github.com/phpbb/phpbb3 into ↵Joas Schilling2012-07-1824-175/+1273
| |\ | | | | | | | | | feature/new-tz-handling
| * | [feature/new-tz-handling] Properly name new timezone selection functionJoas Schilling2012-07-175-20/+38
| | | | | | | | | | | | | | | | | | Marked the old one as deprecated and made it using the new function. PHPBB3-9558
| * | [feature/new-tz-handling] Use tmp variable for user timezoneJoas Schilling2012-07-161-5/+5
| | | | | | | | | | | | PHPBB3-9558
| * | [feature/new-tz-handling] Allow phpbb prefix for user data validation functionsJoas Schilling2012-07-161-4/+15
| | | | | | | | | | | | PHPBB3-9558
| * | [feature/new-tz-handling] Require user argument on phpbb_datetimeJoas Schilling2012-07-163-8/+7
| | | | | | | | | | | | PHPBB3-9558
| * | [feature/new-tz-handling] Fix code and doc layoutJoas Schilling2012-06-202-4/+8
| | | | | | | | | | | | PHPBB3-9558
| * | [feature/new-tz-handling] Fix docs in phpbb_user classJoas Schilling2012-06-201-1/+5
| | | | | | | | | | | | PHPBB3-9558
| * | [feature/new-tz-handling] Prefix function with phpbb_Joas Schilling2012-06-191-2/+2
| | | | | | | | | | | | PHPBB3-9558
| * | [feature/new-tz-handling] Trim comment length and remove leading underscoresJoas Schilling2012-06-191-4/+5
| | | | | | | | | | | | PHPBB3-9558
| * | [feature/new-tz-handling] Fix comment and validation in ACP board moduleJoas Schilling2012-06-191-2/+2
| | | | | | | | | | | | PHPBB3-9558
| * | [feature/new-tz-handling] Add a function to get the timestamp of a dateJoas Schilling2012-06-181-0/+15
| | | | | | | | | | | | | | | | | | The function uses the given timezone and returns the correct UNIX timestamp of it. PHPBB3-9558
| * | [feature/new-tz-handling] Update doc blocks for the three timezone functionsJoas Schilling2012-06-181-3/+20
| | | | | | | | | | | | 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] Inject $user to avoid the usage of globalJoas Schilling2012-06-181-2/+2
| | | | | | | | | | | | 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] Fix timezone option when editing a user in the ACPJoas Schilling2012-06-181-1/+3
| | | | | | | | | | | | PHPBB3-9558
| * | [feature/new-tz-handling] Fix Timezone selection on registration pageJoas Schilling2012-06-181-1/+3
| | | | | | | | | | | | PHPBB3-9558
| * | [feature/new-tz-handling] Introduce 2 step timezone selection using javascriptJoas Schilling2012-06-182-10/+37
| | | | | | | | | | | | PHPBB3-9558
| * | [feature/new-tz-handling] Remove appearances of board_dst and user_dstJoas Schilling2012-06-186-10/+2
| | | | | | | | | | | | PHPBB3-9558
| * | [feature/new-tz-handling] Replace gmmktime() and mktime() with phpbb_datetimeJoas Schilling2012-06-182-6/+8
| | | | | | | | | | | | PHPBB3-9558
| * | [feature/new-tz-handling] Fix timezone validation in ACP user sectionJoas Schilling2012-06-181-2/+2
| | | | | | | | | | | | PHPBB3-9558
| * | [feature/new-tz-handling] Fix timezone selection on registration pageJoas Schilling2012-06-181-5/+5
| | | | | | | | | | | | PHPBB3-9558
| * | [feature/new-tz-handling] Fix handling of timezone and dst in dateformat_selectJoas Schilling2012-06-181-7/+8
| | | | | | | | | | | | PHPBB3-9558
| * | [feature/new-tz-handling] Fix displaying of "All times are" stringJoas Schilling2012-06-181-1/+9
| | | | | | | | | | | | PHPBB3-9558
| * | [feature/new-tz-handling] Fix selecting and validating of timezone in UCPJoas Schilling2012-06-183-12/+32
| | | | | | | | | | | | PHPBB3-9558
| * | Merge branch 'feature/new-tz-handling' of https://github.com/p/phpbb3 into ↵Joas Schilling2012-06-044-74/+302
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | feature/new-tz-handling Conflicts: phpBB/includes/functions_profile_fields.php phpBB/includes/session.php phpBB/install/database_update.php
| | * | [feature/new-tz-handling] Sort timezones in selector by offset.Oleg Pudeyev2012-03-141-1/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the list of timezones is very long, and users are likely to know their current offset but not necessarily which city that is nearby is in the timezone database, sort the list of timezones by offset. UTC is specially handled to show up before other GMT+0 timezones. 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] Remove case mangling, the identifiers are correct.Chris Smith2012-03-141-2/+2
| | | | | | | | | | | | | | | | PHPBB3-9558
| | * | [feature/new-tz-handling] Update tz_select() to use the PHP timezone database.Chris Smith2012-03-141-7/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tz_select() now uses the PHP timezone database to generate the timezone selection box, it tries to use a translated language string otherwise falls back to a label produced from the timezone identifier. I've done this so new timezones are available immediately without a new language pack. PHPBB3-9558
| | * | [feature/new-tz-handling] Remove code using legacy timezone properties.Chris Smith2012-03-141-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Code accessing the legacy user::$timezone and user::$dst properties has been removed and replaced with code utilising user::create_datetime(). Changed by Oleg: in viewtopic, memberlist and index use getTimestamp() + getOffset(). We show members that have birthdays on the specified date. getTimestamp() returns the current date in UTC. We add getOffset() to obtain the current local time in the viewing user's timezone. Then we find members having birthday on this date. Changed by Oleg again: Take leap year status out of the datetime object we have, this seems like it should work as one would expect. 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