Skip to content

Commit

Permalink
Remove more instances
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Jan 16, 2015
1 parent 47cb2b9 commit f74d8a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/joomla/form/fields/calendar.php
Expand Up @@ -177,7 +177,7 @@ protected function getInput()
{
case 'SERVER_UTC':
// Convert a date to UTC based on the server timezone.
if ((int) $this->value && $this->value != JFactory::getDbo()->getNullDate())
if ($this->value != JFactory::getDbo()->getNullDate())
{
// Get a date object based on the correct timezone.
$date = JFactory::getDate($this->value, 'UTC');
Expand All @@ -191,7 +191,7 @@ protected function getInput()

case 'USER_UTC':
// Convert a date to UTC based on the user timezone.
if ((int) $this->value && $this->value != JFactory::getDbo()->getNullDate())
if ($this->value != JFactory::getDbo()->getNullDate())
{
// Get a date object based on the correct timezone.
$date = JFactory::getDate($this->value, 'UTC');
Expand Down

0 comments on commit f74d8a6

Please sign in to comment.