Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Server time?

Featured Replies

Hello,

 

First my thank you to the volunteer/developer of this package.

 

I have a question in changing my server time I've tried using

 

 

"date.timezone = "Canada/Mountain"" and "America/Edmonton

 

in my php.ini/php development and php cli. still my server timezone wont change to the above time.

 

any reason i could be doing this wrong?

 

 

thanks,

 

msevero :)

 

UniServer 5.6b

windows xp

First thanks for stating the US version.

 

The line:

date.timezone = "Canada/Mountain"

As you rightly pointed out should be placed in each of these files

php.ini

php.ini_delvelopment_nano

php.ini_production_nano

php-cli.ini

 

Background php.ini is the file PHP uses at start-up. Switching between production and development switches in the corresponding file that overwrites php.ini (Note you need to restart the server for any changes to be picked up) The control uses php-cli.ini no real need to change this file.

 

I added the above line to php.ini and it works correctly.

Now assuming you have not made a typo it is possible that a third party application is overriding the setting!

 

A quick test is to edit file UniServer\www\.htaccess

At the end of this file add the following line:

php_value  date.timezone "Canada/Mountain"

Create a new file UniServer\www\time.php

Add this code:

<?php
echo date("l, F d, Y h:i" ,time());
?>

Run the file as follows type into your browser:

http://localhost/time.php

 

(Note: No need to restart servers)

That should display the correct time for your time zone.

If it does either the problem is a typo or a third party application.

 

All the best

Ric :)

  • Author

Hi Ric,

 

Thanks a lot for that help. I went and use your suggestion for testing and it works fine.

 

 

cheers :)

 

msevero

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.