in reply to Why does localtime() return $YEAR-1900?
I suspect that it's based on Time.h. See Time::localtime