Skip to content

Commit

Permalink
Merge pull request #11 from meshulam/master
Browse files Browse the repository at this point in the history
Use DateTime object instead of string as timestamp
  • Loading branch information
Aaron Brenzel committed Mar 5, 2014
2 parents 8d9ee11 + 190dc7e commit 58b78e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/write-bulk.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$tdb = new TempoDB("your-api-key", "your-api-secret");

$ts = date("c");
$ts = new DateTime();
$data = array(
array('key' => "custom-series-key1", 'v' => 1.11),
array('key' => "custom-series-key2", 'v' => 2.22),
Expand Down

0 comments on commit 58b78e1

Please sign in to comment.