The system displays the current date / time of UTC/GMT.
To get time/date for local time zone. use following code:
let currentDate = Date()
//7/29/18, 9:09 PM
print (DateFormatter.localizedString(
from: currentDate,
dateStyle: .short,
timeStyle: .short))
//Sunday, July 29, 2018 at 9:09:27 PM India Standard Time
print (DateFormatter.localizedString(
from: currentDate,
dateStyle: .full,
timeStyle: .full))
//Jul 29, 2018 at 9:09:27 PM
print (DateFormatter.localizedString(
from: currentDate,
dateStyle: .medium,
timeStyle: .medium))
Above code is tested in India at 09:09 PM on 29th July 2018.