I have a timestamp string "2011-01-23T16:18:46-08:00" and I want to convert it to my local time zone.

    (decode-time (parse-iso8601-time-string "2011-01-23T16:18:46-08:00")))



which is off by several decades. How do I fix this?

1 Answer 1


parse-iso8601-time-string already returns a time value that format-time-string accepts:

 (parse-iso8601-time-string "2011-01-23T16:18:46-08:00"))
     => "2011-01-24T08:18:46+0800"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.