If I have d = DateTime.now, how do I convert 'd' into UTC (with the appropriate date)?
d = DateTime.now
DateTime.now.new_offset(0)
will work in standard Ruby (i.e. without ActiveSupport).
2.1m questions
2.1m answers
60 comments
57.0k users