Skip to content

Commit d57aa05

Browse files
authored
translate how to get the timestamp for lighting (#9656)
1 parent 9b67b19 commit d57aa05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindings/pydeck/examples/polygon_layer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def calculate_elevation(val):
5757
# Add sunlight shadow to the polygons
5858
sunlight = {
5959
"@@type": "_SunLight",
60-
"timestamp": 1564696800000, # Date.UTC(2019, 7, 1, 22),
60+
"timestamp": 1564696800000, # datetime.datetime(2019, 7, 1, 22, tzinfo=datetime.timezone.utc).timestamp() * 1000
6161
"color": [255, 255, 255],
6262
"intensity": 1.0,
6363
"_shadow": True,

0 commit comments

Comments
 (0)