I'm seeing $asctime timestamp shifting by 1 hour when N is in the opposite daylight zone than the current day.
$asctime() returns N in local time. It passes the N time value directly to the localtime() function which calculates the result. Do you have any experience with the localtime() time function? If you do, would you know how you would call it in order to return the result you are expecting for $asctime()?