If the first line does not work, and the second does, then the reason is obviously related to %l
var_dump(strftime("%l", time()));
Makes mistakes in windows.
Reading the strftime tutorial ...
C, PHP strftime(). , , , Unix. , % e,% T,% R ,% D (, , ), 1 1970 . Windows, Linux . Windows "MSDN".
%l , .