I'm working on a system which needs to be timezone aware, however I've come across an odd discrepancy. Consider the following:
x = DateTime.parse("2017-02-01 12:00:00+0200")
The result given is (correctly) returned to me in my current timezone of -0800
However, if I perform the following:
y = Date.today - 1
I end up getting a result in -0700
I fail to understand how this is happening or even how I correct it. When looking up time zone manipulation in Ruby, all I got was "good luck" (from an actual documentation site).