changed date to unix timestamp