import datetime
UTC_OFFSET = 4
local_datetime = datetime.datetime.now()
print((local_datetime - datetime.timedelta(hours=UTC_OFFSET)).strftime(
    '%Y-%m-%d %H:%M:%S'))
Converting a string to a formatted date-time string using Python