• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • The ImunifyAV extension is now deprecated and no longer available for installation.
    Existing ImunifyAV installations will continue operating for three months, and after that will automatically be replaced with the new Imunify extension. We recommend that you manually replace any existing ImunifyAV installations with Imunify at your earliest convenience.

Resolved timestamps in file manager

M_N

Basic Pleskian
Server operating system version
Windows Server 2022
Plesk version and microupdate number
Plesk Obsidian Version 18.0.53 Update #2
The time stamp on a file in file manager shows the last modified time in GMT instead of local time.

It shows correctly on another server with the same version of plesk, but I can't find any setting to control it.

The server time and timezone are correct in plesk and in windows and the timestamp shows correctly when looking at the file in windows file manager.
 
For Linux:
  1. Connect to the server via SSH.
  2. Modify Plesk configuration file php.ini and add timezone like below (set the required timezone):
    # grep zone /usr/local/psa/admin/conf/php.ini
    date.timezone = "<your timezone definition here, e.g. Europe/Berlin>"
  3. Restart Plesk to apply changes:
    # service psa restart
For Windows:
  1. Connect to the server via RDP.
  2. Set correct value in "%plesk_dir%admin\conf\php.ini. For example:
    date.timezone = "Europe/Lisbon"
  3. Restart Plesk Management Service.
 
For Linux:
  1. Connect to the server via SSH.
  2. Modify Plesk configuration file php.ini and add timezone like below (set the required timezone):
    # grep zone /usr/local/psa/admin/conf/php.ini
    date.timezone = "<your timezone definition here, e.g. Europe/Berlin>"
  3. Restart Plesk to apply changes:
    # service psa restart
For Windows:
  1. Connect to the server via RDP.
  2. Set correct value in "%plesk_dir%admin\conf\php.ini. For example:
    date.timezone = "Europe/Lisbon"
  3. Restart Plesk Management Service.
Thank you BUT

In the php.ini file there is a notice that changes to this file will be overwritten by plesk updates

;Note that any changes made to this file will be overwritten when Plesk is updated.
;If you need to make changes to the Plesk PHP settings, we recommend creating a
;file named %plesk_dir%\admin\htdocs\.user.ini and making the necessary edits there.
I went ahead and put the date.timezone setting in .user.ini as described (file did not exist, created a new file) and restarted plesk management service and it is correct now. (had a little scare after restarting the plesk management service, the plesk page would not load, but I restarted the service again and it loaded).

Thank you

(Surprising that there is no setting for this in the plesk UI.)
 
If I remember correctly, only some variables will be changed by Plesk, but not all of the file. What could happen is that with an upgrade of the PHP version that Plesk uses internally, a different php.ini will be used. But let's just wait and see. Now that you know how to solve the issue, this will be very easy to fix should it occur again.
 
Back
Top