Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Renaming toSQL to toSql

  • Loading branch information...
commit 0fb8e47efc13002b20b00ad3c5ca3e8ab28de58e 1 parent dbbc4f8
@chdemko authored
View
6 libraries/joomla/utilities/date.php
@@ -523,11 +523,11 @@ public function toISO8601($local = false)
*
* @link http://dev.mysql.com/doc/refman/5.0/en/datetime.html
* @since 11.1
- * @deprecated 12.1 Use JDate::toSQL()
+ * @deprecated 12.1 Use JDate::toSql()
*/
public function toMySQL($local = false)
{
- JLog::add('JDate::toMySQL() is deprecated. Use JDate::toSQL() instead.', JLog::WARNING, 'deprecated');
+ JLog::add('JDate::toMySQL() is deprecated. Use JDate::toSql() instead.', JLog::WARNING, 'deprecated');
return $this->format('Y-m-d H:i:s', $local, false);
}
@@ -542,7 +542,7 @@ public function toMySQL($local = false)
* @link http://dev.mysql.com/doc/refman/5.0/en/datetime.html
* @since 11.4
*/
- public function toSQL($local = false, $dbo = null)
+ public function toSql($local = false, $dbo = null)
{
if ($dbo === null)
{
View
6 tests/suite/joomla/utilities/JDateTest.php
@@ -965,7 +965,7 @@ public function testToMySQL($tz, $setTime, $local, $expected)
}
/**
- * Testing toSQL
+ * Testing toSql
*
* @param mixed $tz Which time zone? (can be string or numeric
* @param string $setTime What time should be set?
@@ -977,7 +977,7 @@ public function testToMySQL($tz, $setTime, $local, $expected)
* @dataProvider casesToMySQL
* @since 11.3
*/
- public function testToSQL($tz, $setTime, $local, $expected)
+ public function testToSql($tz, $setTime, $local, $expected)
{
if (is_null($tz))
{
@@ -989,7 +989,7 @@ public function testToSQL($tz, $setTime, $local, $expected)
}
$this->assertThat(
- $testJDate->toSQL($local),
+ $testJDate->toSql($local),
$this->equalTo($expected)
);
}
Please sign in to comment.
Something went wrong with that request. Please try again.