Porting install file for date-api

PHPstorm saying error on this line. $this cannot be accessed under static context.