Incorrect time being printed


Heres my code
from datetime import datetime
now =

print '%s/%s/%s' % (now.month,, 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?


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