long ts = 1548184720l;
System.out.println(ts + "," + (new Date(ts)).toString());
This prints precisely:
1548184720,Sun Jan 18 14:03:04 PST 1970
However, when I use an Epoch converter, it shows the right date and time
Tuesday, January 22, 2019 11:18:40 AM GMT-08:00
Any idea whats going wrong here?