Ejemplo n.º 1
0
 /**
  * Returns the given date in the appropriate timezone.
  *
  * @param string|int     $timestamp a unix timestamp or a string date.
  * @param boolean|string $tz        the timezone to use.
  *                       If none is specified, WordPress' default timezone
  *                       will be used.
  *
  * @return string the given date in the appropriate timezone.
  *
  * @see self::format_unix_timestamp
  *
  * @since 1.0.10
  */
 public static function format_date($timestamp, $tz = false)
 {
     $aux = $timestamp;
     if (!is_int($aux)) {
         $aux = strtotime($timestamp);
     }
     return NelioABFormatter::format_unix_timestamp($aux, $tz);
 }