Printing current time, in different timez ones, in C : I'm trying to print in the console the current time in my local timezone (-0600), then printing the time at the +0100 timezone. Currently I'm using gmtime, and adding 1 to the tm_hour section.

However when using strftime, it still prints the: "... +0000".

How can I print it properly? How can I change my effective time zone, for instance?