Skip to content

Ian Tresman

Ian Tresman

  • Home
  • Hexawords
    • Hexagonal Crossword #1
    • Hexagonal Crossword #2
  • Technical

Month: April 2022

PHP date_sunrise with daylight saving

26 April 2022 by iantresman

I was using PHP to calculate sunrise and sunset using the built-in functions date_sunrise and date_sunset. But initially, the resulting time was ignoring British Summer Times (BST). The solution was to specify whether daylight saving was in force.

Read more

Categories Technical
© 2025 Ian Tresman • Built with GeneratePress