dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Cleanup some docs (includes/*.php)"
[lhc/web/wiklou.git]
/
includes
/
MWTimestamp.php
diff --git
a/includes/MWTimestamp.php
b/includes/MWTimestamp.php
index
447dde3
..
bc59588
100644
(file)
--- a/
includes/MWTimestamp.php
+++ b/
includes/MWTimestamp.php
@@
-268,7
+268,7
@@
class MWTimestamp {
// first value.
if ( $data[0] == 'System' ) {
// First value is System, so use the system offset.
// first value.
if ( $data[0] == 'System' ) {
// First value is System, so use the system offset.
- if (
isset( $wgLocalTZoffset )
) {
+ if (
$wgLocalTZoffset !== null
) {
$diff = $wgLocalTZoffset;
}
} elseif ( $data[0] == 'Offset' ) {
$diff = $wgLocalTZoffset;
}
} elseif ( $data[0] == 'Offset' ) {
@@
-401,7
+401,7
@@
class MWTimestamp {
*
* @since 1.22
* @param bool|string $ts Timestamp to set, or false for current time
*
* @since 1.22
* @param bool|string $ts Timestamp to set, or false for current time
- * @return MWTimestamp
t
he local instance
+ * @return MWTimestamp
T
he local instance
*/
public static function getLocalInstance( $ts = false ) {
global $wgLocaltimezone;
*/
public static function getLocalInstance( $ts = false ) {
global $wgLocaltimezone;
@@
-415,7
+415,7
@@
class MWTimestamp {
*
* @since 1.22
* @param bool|string $ts Timestamp to set, or false for current time
*
* @since 1.22
* @param bool|string $ts Timestamp to set, or false for current time
- * @return MWTimestamp
t
he instance
+ * @return MWTimestamp
T
he instance
*/
public static function getInstance( $ts = false ) {
return new self( $ts );
*/
public static function getInstance( $ts = false ) {
return new self( $ts );