Incorrect time being printed


#1

Heres my code
from datetime import datetime
now = datetime.now()

print '%s/%s/%s' % (now.month, now.day, now.year)
print '%x:%s:%s' % (now.hour, now.minute, now.second)

and its giving me the time in hours:minutes:seconds and its saying its correct, but its giving me the time an hour off from the actual time, i was wondering why this is and if theres any way to fix it?


#2

It's printing the time for the machine that it is running on. That machine is not your own, it's located somewhere else.