Use old-locale. It was inappropriately deprecated with no replacement, and nobody seems to want to bother either fixing or replacing it.
import Data.Hourglass
import System.Hourglass
main :: IO ()
main = do
tc <- timeCurrent
putStrLn $ timePrint ISO8601_DateAndTime tc