Rewrote lastreset to use strftime syntax as date cannot be localized


Fixed a php5 warning