summaryrefslogtreecommitdiff
path: root/src/lib/screen.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-05-03 23:53:44 +0200
committerCarl Hetherington <cth@carlh.net>2020-05-03 23:53:44 +0200
commit107549f047c45a692f229a5023b4f26cd1301921 (patch)
tree9d91f411e2811b56c7dc4a1fca051dc2f27fba0c /src/lib/screen.cc
parent2a1c9e9cfeb1049b1ea0e3b300029218f652f002 (diff)
Cleanups.
Diffstat (limited to 'src/lib/screen.cc')
-rw-r--r--src/lib/screen.cc17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/lib/screen.cc b/src/lib/screen.cc
index ea23ba39a..97e200ec7 100644
--- a/src/lib/screen.cc
+++ b/src/lib/screen.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2020 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
@@ -19,6 +19,7 @@
*/
#include "screen.h"
+#include "cinema.h"
#include <libxml++/libxml++.h>
#include <boost/foreach.hpp>
#include <boost/algorithm/string.hpp>
@@ -58,3 +59,17 @@ Screen::trusted_device_thumbprints () const
return t;
}
+
+int
+Screen::utc_offset_hour () const
+{
+ return cinema ? cinema->utc_offset_hour() : 0;
+}
+
+
+int
+Screen::utc_offset_minute () const
+{
+ return cinema ? cinema->utc_offset_minute() : 0;
+}
+