fixing Firebase date storage