title: How do I display greetings according to my time zone using this python script?
body: <p>I have tried several scripts to use my time zone but it didn't work. How can greeting adjust my time zone?</p>
  
  <p>This is my python script:</p>
  
  <pre><code>import datetime
  now = datetime.datetime.now()
  hour = now.hour
  if hour &lt; 4:
    waktu = "Selamat Dini Hari "
  elif 4 &lt;= hour &lt; 12:
    waktu = "Selamat Pagi "
  elif 12 &lt;= hour &lt; 15:
    waktu = "Selamat Siang ☀"
  elif 15 &lt;= hour &lt; 17:&lt;br/&gt;
    waktu = "Selamat Sore ⛅"&lt;br/&gt;
  elif 17 &lt;= hour &lt; 18:&lt;br/&gt;
    waktu = "Selamat Petang "&lt;br/&gt;
  else:&lt;br/&gt;
    waktu = "Selamat Malam "&lt;br/&gt;
  
  print("{}!".format(waktu))
  </code></pre>