Skip to content

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Jan 16, 2015
1 parent e47afca commit 0a4f2bf
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 (!is_null($value) && $this->value != JFactory::getDbo()->getNullDate())
if (!is_null($this->value) && $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 (!is_null($value) && $this->value != JFactory::getDbo()->getNullDate())
if (!is_null($this->value) && $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 0a4f2bf

Please sign in to comment.