I have to calculate the date epoch time from a GMT timestamp, but I'm locally not in that timezone. My current local time is CEST.
So when I try to calculate the epoch time with
date -d "2017-08-05 10:10:10" "+%s"
But the given time is a GMT, and should therefore result in
I was trying to manually add the difference of hours between the local time and the GMT with
date -d "2017-08-05 10:10:10 +2 hours" "+%F %T"
But that gives me
why is there only +1 hour added!?