title: How to convert PHP timestamp to display datetime format as string in Java (difference UTC)?
body: <p>How to convert PHP timestamp to display datetime format as string in Java (difference UTC)?</p>
  
  <pre><code>&lt;?php
  echo date('d-m-Y h:i:sa',1495221086);
  // Result: 19-05-2017 09:11:26pm
  
  &lt;?php
  date_default_timezone_set('Asia/Phnom_Penh'); // UTC+07:00
  echo date('d-m-Y h:i:sa',1495221086);
  // Result: 20-05-2017 02:11:26am
  </code></pre>
  
  <p>Question: how to convert 1495221086 to 20-05-2017 02:11:26am in Java?</p>