Unstoppable Domains โ€” Get your daily AI drops report

British Summer Time (BST)

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
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.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
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
•••
CatchedCatched
Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back