Dynadot โ€” .com Transfer

British Summer Time (BST)

SpaceshipSpaceship
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.
GoDaddyGoDaddy
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 TransferDynadot โ€” .com Transfer
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back