- date_default_timezone_set: documentation ( source)
- strtotime: documentation ( source)
<?php
date_default_timezone_set('GMT');
$now = strtotime("now");
echo "\nnow is $now";
$purchasedDate = strtotime($now);
echo "\npurchasedDate is $purchasedDate";