Setting locale in Php

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

liam_d

The original NP Emo KidEstablished Member
Impact
25
Basically i have this:
Code:
$time = time();

echo $time . '<br />';

echo date("d-m-Y H:i:s",$time);

Obviously it outputs server time, i wish to change the locale to UK time?
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Add or subtract the number of seconds differing between your server's time zone and your preferred time zone.
 
0
Close
That is the long way around, i would prefer to use the setlocale options but i cannot get it to work.
 
0
Close
0
Close
DomainEasy: white label portfolios are live. Enable yours.

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