This examples uses current date, UTC time and local offset to generate the correct local time.