Skip to content
Browse files

Set the timezone when we load the time object, doh!

  • Loading branch information...
1 parent 1e24dd9 commit dbdadc62de886ad48be58696de8c573a58355d22 @lukec lukec committed Nov 26, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 vhsapi/lib/VHSAPI/Datapoint.pm
View
6 vhsapi/lib/VHSAPI/Datapoint.pm
@@ -36,4 +36,8 @@ method update ($value) {
$->space->notify($self);
}
-method _build_datetime { DateTime->from_epoch(epoch => $->last_updated) }
+method _build_datetime {
+ my $dt = DateTime->from_epoch(epoch => $->last_updated);
+ $dt->set_time_zone('America/Vancouver');
+ return $dt;
+}

0 comments on commit dbdadc6

Please sign in to comment.
Something went wrong with that request. Please try again.