Ruby Time.parse, Time. strptime and Time zones
This is a note to myself. So it might not be entirly useful to other folks. Note: my system’s time zone is set to +1000 Brisbane time. Recently I stumbled accross a bug in our code base where, Time.parse was used (incorrectly) to create a Time object from a string. Time and specially Time.zone related stuff tend to be very complicated and is quite easy to misunderstand. The whole codebase was full of lines of code like the following: ...