I have developed a piece of application which records when certain records where modified and created, so basically we take use of the time()
function to record when a change is saved.
I am in the UK so my time-zone has to be GMT. However in the UK we use DST so in the summer we are no longer in GMT but in BST.
How would I change the timezone to be using BST (which is GMT +1). I would like to declare it in my php file so that it is easily changed. Here is what I have at the moment:
date_default_timezone_set("UTC");
When I change it to:
date_default_timezone_set("BST");
I get a php error Timezone ID 'BST' is invalid
, and when I change it to Europe/London, it still stays as GMT rather then BST