We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f16e49 commit a6a6c32Copy full SHA for a6a6c32
lib/ezutils/classes/eztimestamp.php
@@ -15,7 +15,7 @@ class eZTimestamp
15
*/
16
public static function getUtcTimestampFromLocalTimestamp( $localTimestamp ) {
17
18
- if ( !$localTimestamp )
+ if ( $localTimestamp === null || $localTimestamp === '' )
19
{
20
return null;
21
}
@@ -35,7 +35,7 @@ public static function getUtcTimestampFromLocalTimestamp( $localTimestamp ) {
35
36
public static function getLocalTimestampFromUtcTimestamp( $utcTimestamp ) {
37
38
- if ( !$utcTimestamp )
+ if ( $utcTimestamp === null || $utcTimestamp === '' )
39
40
41
0 commit comments