update: make datetime platform indipendent