Dynadot โ€” .com Registration $8.99

British Summer Time (BST)

Spacemail by SpaceshipSpacemail by Spaceship
Watch

D@Z

Established Member
Impact
0
I currently have this code to show when my page was last modified in Greenwich Mean Time (GMT) but the clocks in the UK went forward one hour tonight to British Summer Time (BST).

This code I have is set to GMT so is there anyway of putting it +1 hour? Thanks.

PHP:
<? $last_modified = filemtime("index.php"); 
   print("Last Updated: "); 
   print(gmdate("l, d F, Y H:i", $last_modified));?>
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
The time is returned as a Unix timestamp (seconds from xxxx) , so you can add 3600 to last_modified and will be ok

PHP:
  <? $last_modified = filemtime("index.php");
  $last_modified=$last_modified+3600;
   print("Last Updated: ");
   print(gmdate("l, d F, Y H:i", $last_modified));?>

Best Regards
Adrian
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Unstoppable Domains
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back