Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function utclocal($date) {
- $conv = new DateTime($date, new DateTimeZone('UTC'));
- $conv->setTimeZone(new DateTimeZone('Asia/Makassar'));
- return $conv->format('Y-m-d H:i:s');
- }
- $date = '2020-04-22 14:00:00';
- echo utclocal($date);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement