There may actually be a good reason for writing code like that. The time the content was generated by the server, perhaps?
window.pageBirthday = <?php echo time(); ?>
Also, if they're on Stack Overflow asking why it doesn't correctly report the current time, that's a pretty good indicator that they're simply mistaken.