We are creating a unix timestamp with the mktime method giving following attributes:
print_r(mktime(0,0,0,3,1,2009));
print_r(mktime(null,null,null,3,1,2009) / 60 / 60 / 24) . "days");`
this creates a result of
1235862000
14303.958333333 days
this should be 14304 days. The problem in this case is the winter hour. You can use the is_dst parameter, and when we use 0 (default -1) this sometimes works correctly giving 14304 days as a result.
But sometimes this gives following problem:
Strict Standards: mktime() [function.mktime]:The is_dst parameter is deprecated
i have no idea what it means and what i can do about it. Any idea someone? because the winter hour is causing terrible head ache....