如果我有d = DateTime.now,如何将 'd' 转换为 UTC(带有适当的日期)?
d = DateTime.now
DateTime.now.new_offset(0)
将在标准 Ruby 中工作(即没有 ActiveSupport)。