summaryrefslogtreecommitdiffstats
path: root/Twilio/Deserialize.php
blob: fb77bc42df1ed92856d72d358ae98110893f4930 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

namespace Twilio;

class Deserialize {

    public static function iso8601DateTime($s) {
        try {
            return new \DateTime($s, new \DateTimeZone('UTC'));
        } catch (\Exception $e) {
            return $s;
        }
    }

}