NameSilo

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
Close
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
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back