Avoid date()/gmdate() for date formatting
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 6 Jul 2013 19:59:35 +0000 (21:59 +0200)
committerTim Starling <tstarling@wikimedia.org>
Mon, 8 Jul 2013 04:14:12 +0000 (04:14 +0000)
commit0a810a5a8757238a47fead67bddaa64380f1d53c
tree2cee853540971f1b2ef036d679ce1769d712a5b4
parentb002d2f7928b729fcbe21eb9a4c266a762c71a17
Avoid date()/gmdate() for date formatting

Added a MWTimestamp::format method to format a timestamp object in the
given pattern. This avoids date(), which needs the local time
zone corretly set on the server, which is assumed at the moment in
Setup.php

Added MWTimestamp::getInstance for gmdate() and
MWTimestamp::getLocalInstance for date() to create a MWTimestamp object
and use it as inline statement.
Also MWTimestamp::setTimezone and MWTimestamp::getTimzone was added for
timezone handling.

Change-Id: I812aa013be2f4380e0cf10dc465202756fe8347b
includes/Pager.php
includes/Preferences.php
includes/Timestamp.php
includes/UserMailer.php
includes/Xml.php
includes/actions/HistoryAction.php
includes/db/DatabaseOracle.php
includes/filerepo/FileRepo.php
includes/parser/Parser.php
includes/specials/SpecialContributions.php
includes/specials/SpecialVersion.php