Just because the issue predated Java doesn’t preclude the fact that the initial JavaScript Date implementation was lifted from java.util.Date. Brandon Eich has explicitly stated it was so.
Twitter is such a bad platform for this. Code in images means it's completely inaccessible to the blind and very inaccessible to people with poor vision, and you can't copy and paste it into an editor for syntax highlighting or better examination.