Skip to content

Commit

Permalink
Fix timezone issue in halloween_countdn (#2854)
Browse files Browse the repository at this point in the history
  • Loading branch information
CoatedMoose authored Nov 5, 2024
1 parent 572ee60 commit a4dabbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/halloweencountdn/halloween_countdn.star
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def main(config):
ghost_gif = base64.decode("R0lGODdhmQClANUAAAAAAAwMDBMTExwcHCMiIigmJiwrKzAvLzMyMjg2Njw8PEE+PkNDQ0lGRkxLS1JPT1RTU1lWVl1cXGBcXGNiYmlmZmxqanFubnRycnp2dnx8fIJ+foOCgoqGho2MjJGNjZSSkpuWlp2cnKOenqSjo6mjo6urq7GurrS0tLm3t7y8vMLCwszMzNPT09zb2+Df3+Li4ujn5+zs7PDv7/Ly8vj39////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAVkADcALAAAAACZAKUAAAb/QIBwSCwaj8ikcslsOp/QqHRKrVqv2Kx2y+16v+CweEwum8/otHrNbrvf8Lh8Tq/b7/i8fs/vUwUQIDaDhIMiEgJ+iksSI4WPkIMWiYuLDJGYmReVewEhmaCZIZx3oaagCKRyDqetmBiqbx+utJAjsWsCtbuQCrhnELzCj79kGcPIhJvFXxbJz4OUzFqX0NAg01rW2zYB2Vbc3BzfU+HmBuRPs+bhsOlLGOzsGe9JCvLyD/VH+PgN+0T69RsAEEA1gfIKIuz3Yd9Cgd7SsXrY7x1FgQS/ObpYMZsujv2kFQMpcBQzBCQFTkspUKSqj7tMGAggIACBFs9MWNBwbSQv/w1HBsDgRYMBkQBDk/0KwIuCEhS7CBxBIAOZy0obXcm4asQFLV9JJvK6FasWDa5GDpoat8TAsFj3aKFrwrSVExHCJKgiQcsDlFZ66b4lVQstErtPBnOitSLKKRJQaAhbQNiVOycwQTmAUvUnpwFfoajNJDWxYkXrWpW+e8owv9N+aq1uItlURCfIKhGoBbbJ7lMZmwSDzQcvLaBO+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Q70aCZ6DuRvHXu6u9C7KlZycAU3QtmoQhL9KapDUc0oZiQRLzRxFb2a7G4Xyq7cbxWBvIxSDTSdMjIjI2UCRso32THuy3HLPPMCzmwQhEnJFIEzRDZoMYKaQDFMM8GaaCJlScQbVAMiWTy5QVKExS0lZKcsELUAxWxsARYD0RJJ05bWUjXn5yQpiZkB300dl+j3TUgX2rytSNkwy0m3V3jkSYlZGvnTbXTUZD9ibMjqfFJAYJ/coHdQPGdOEF60zT24wX53QkelCN0wQ08AABA5gVx8MYnNHwO+kBfjL6E6ad/8obqrJ++xuidEzTAABVUkDgVr+eQAxVnvC78Jyl4HrMBPCwBxA0wNA8DEGusoRAVxreMxesgneF57BYjgL1JAVT/sfdvSC/9RhWIv/EC34Pkg/oWD9D+R2tsj/LsEp1fEAzwR9zF6CxZHfcitgQAHgQOEFldy5agP5CIIAELnN9C1nCGCooBDDLzgfCGR5AvUKELXZiCEbagNC28TgxvsIIQjNCEJzABXgEBADs=")

timezone = config.get("timezone") or "America/New_York"
timezone = config.get("$tz", "America/New_York")
now = time.now().in_location(timezone)

halloween_year = now.year
Expand Down

0 comments on commit a4dabbc

Please sign in to comment.