I've figured out the problem: My code was working all the time, but I didn't realise it, as the Mixpanel UI has a big sorting bug. If I sort the records descending by created time, then the first shown record was created on December 31st.
But if I sort the records by Last Seen, it shows users created minutes ago.
This is a sorting bug. I believe the date sort of Mixpanel sorts alphabetically when we sort the dates.
'12/31/2012' > '1/7/2013'
So, people from 12/31/2013 are "newer" than people from 1/1/2013. I will send an email to Mixpanel to notify them about the problem.