summaryrefslogtreecommitdiffstats
path: root/src/web/web.vala
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2013-05-19 18:51:36 +0200
committerSebastian Reichel <sre@ring0.de>2013-05-19 18:51:36 +0200
commitdf92bc4ff33ead23dd69c0dbe5230eff3454510a (patch)
tree67ae9cb84fa8633a7969ae9caf12a1574a06249a /src/web/web.vala
parenta45c47e95af5b71d1e7da4493f7527316f3dcfda (diff)
downloadserial-barcode-scanner-df92bc4ff33ead23dd69c0dbe5230eff3454510a.tar.bz2
web: use local time in invoice
Diffstat (limited to 'src/web/web.vala')
-rw-r--r--src/web/web.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/web.vala b/src/web/web.vala
index 26719ff..4597f8b 100644
--- a/src/web/web.vala
+++ b/src/web/web.vala
@@ -423,7 +423,7 @@ public class WebServer {
string table = "";
Price sum = 0;
foreach(var e in db.get_invoice(id, start.to_unix(), stop.to_unix())) {
- var timestamp = new DateTime.from_unix_utc(e.timestamp);
+ var timestamp = new DateTime.from_unix_local(e.timestamp);
var date = timestamp.format("%d.%m.%Y");
var time = timestamp.format("%H:%M:%S");
var product = e.product.name;