Use calendar.universal_time instead of erlang.localtime
If it's the first fetch, then reverse the order of messages