I have a string like this:
\"2010-01-01 12:30:00\"
I need that to convert to UTC from the current local time zone.
I tried this, but it
For APIs you can use:
utc_date = Time.parse("2013-05-31 00:00").utc.iso8601 #=> Result will be: 2013-05-30T21:00:00Z
You can check these articles: