From: omidmottaghi <omidmottaghi> Date: Sat, 26 Nov 2005 22:48:12 +0000 (+0000) Subject: a small bug fixed X-Git-Tag: 1.0~267 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c19a4142c081284c484dc69412b0d76c65ca7817;p=s9y.git a small bug fixed --- diff --git a/include/functions_calendars.inc.php b/include/functions_calendars.inc.php index 5ee6d2a..fe34802 100644 --- a/include/functions_calendars.inc.php +++ b/include/functions_calendars.inc.php @@ -396,7 +396,7 @@ function jalali_date_utf($format, $timestamp) { } /** - * Create a Jalali timestamp from a Gregorian timestamp + * Create a Unix timestamp for a Jalali date * * @author Omid Mottaghi * @access public @@ -409,7 +409,7 @@ function jalali_date_utf($format, $timestamp) { * @param int is daylight savings time set? * @return int returned timestamp */ -function jalali_mktime($hour=0, $min=0, $sec=0, $mon=1, $day=1, $year=1970, $is_dst=-1){ +function jalali_mktime($hour=0, $min=0, $sec=0, $mon=1, $day=1, $year=1349, $is_dst=-1){ list($year, $mon, $day)=j2g($year, $mon, $day); return mktime($hour, $min, $sec, $mon, $day, $year, $is_dst); }