Skip to content

Commit

Permalink
Fixes an issue I've introduced with #2026
Browse files Browse the repository at this point in the history
Apparently neither "0" nor "false" get "my_date" to calculate the offset correctly so reverted it to an empty string and edited the doc block to reflect that behavior
  • Loading branch information
JN-Jones committed Sep 6, 2015
1 parent fb423c2 commit f0e9cac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/functions.php
Expand Up @@ -324,12 +324,12 @@ function parse_page($contents)
*
* @param string $format A date format according to PHP's date structure.
* @param int $stamp The unix timestamp the date should be generated for.
* @param int $offset The offset in hours that should be applied to times. (timezones)
* @param int|string $offset The offset in hours that should be applied to times. (timezones) Or an empty string to determine that automatically
* @param int $ty Whether or not to use today/yesterday formatting.
* @param boolean $adodb Whether or not to use the adodb time class for < 1970 or > 2038 times
* @return string The formatted timestamp.
*/
function my_date($format, $stamp=0, $offset=0, $ty=1, $adodb=false)
function my_date($format, $stamp=0, $offset="", $ty=1, $adodb=false)
{
global $mybb, $lang, $mybbadmin, $plugins;

Expand Down

0 comments on commit f0e9cac

Please sign in to comment.