[php-blog-cvs] r734 - trunk/include
A reliable, secure & extensible PHP blog | Not mainstream since 2002
Brought to you by:
garvinhicking,
jhermanns
From: omidmottaghi at B. <omi...@ma...> - 2005-11-26 22:48:17
|
Author: omidmottaghi Date: 2005-11-26 23:48:12 +0100 (Sat, 26 Nov 2005) New Revision: 734 Modified: trunk/include/functions_calendars.inc.php Log: a small bug fixed Modified: trunk/include/functions_calendars.inc.php =================================================================== --- trunk/include/functions_calendars.inc.php 2005-11-26 18:38:45 UTC (rev 733) +++ trunk/include/functions_calendars.inc.php 2005-11-26 22:48:12 UTC (rev 734) @@ -396,7 +396,7 @@ } /** - * 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 @@ * @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); } |