Unstoppable Domains

British Summer Time (BST)

Spaceship 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
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back