JavaScript postgresql to_timestamp returns different date than represented by the timestamp

Here's a replication of the problem:

I get the timestamp of now via JavaScript as

var ts = +new Date // 1368971991090
console.log( new Date(1368971991090) ); // Sun May 19 2013 13:59:51 GMT+0000 (GMT)
Then in my Postgres console,

# select to_timestamp(1368971991090);
          to_timestamp          
--------------------------------
 45350-12-30 05:31:29.999872+00
(1 row)

A date way too much into the future.
The docs of JavaScript Date#getTime say it returns milliseconds starting from the epoch; same as the argument type Postgres' to_timestamp accepts. Java's Date#getTime returns same value as JS Date#getTime.

Answer:1

I am using the following coding for the script in external file function DiableLink(elem){ console.log($(elem).attr('type')); if($(elem).hasClass('disabled')) { return false; } ...

I am using the following coding for the script in external file function DiableLink(elem){ console.log($(elem).attr('type')); if($(elem).hasClass('disabled')) { return false; } ...

I am receiving the following message when I try to use Backbone's collection.each() method: TypeError: Object function (){ return parent.apply(this, arguments); } has no method 'each'. I'm learning ...

I am receiving the following message when I try to use Backbone's collection.each() method: TypeError: Object function (){ return parent.apply(this, arguments); } has no method 'each'. I'm learning ...

  1. backbone collection each example
  2. backbone collection each
  3. backbone collection each break
  4. backbone js collection each
  5. backbone collection foreach
  6. backbone this.collection.each is not a function

I have a bunch of title texts that get generated they all have different .Length but at a specific startindex of the string I want to find the closest space and then remove the text after it and also ...

I have a bunch of title texts that get generated they all have different .Length but at a specific startindex of the string I want to find the closest space and then remove the text after it and also ...

i want to call a html online link using xmlhttprequest with javascript, here is my code but when the code arrive to xmlhttp.open it stopped and does not continue the execution function loadXMLDoc(...

i want to call a html online link using xmlhttprequest with javascript, here is my code but when the code arrive to xmlhttp.open it stopped and does not continue the execution function loadXMLDoc(...

  1. javascript html file to string
  2. javascript html file upload
  3. javascript html file
  4. javascript html file name
  5. javascript html file load
  6. javascript html file input
  7. javascript html file include
  8. javascript html file download
  9. javascript html file read
  10. javascript html file in variable
  11. javascript html file example
  12. javascript html file template
  13. javascript html file save
  14. javascript html file link
  15. javascript html file not found
  16. javascript html file relative path
  17. javascript html file exists
  18. javascript html file require
  19. javascript html file make
  20. javascript html file difference