Announcement

Collapse
No announcement yet.

Changing time zone for a single account

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Changing time zone for a single account

    If you want to change timezone for a single account on a cPanel server you can follow following simple steps for this.

    1) Login to the server as root.

    2) Navigate to the home directory of the account and create a .htaccess file. If it already exists you can add the following line to the top of the file.

    3) Insert the following line in it

    SetEnv TZ “TimeZone”

    or

    php_value date.timezone “TimeZone”
    Replace the TimeZone with appropriate time zone as per your convenience. For Eg:: Asia/Calcutta

    Refer PHP: List of Supported Timezones - Manual for the list of available timezones.

    You are done.
    WHUK-Sarina
    Linux Support Department

  • #2
    why login as root? why not go to cpanel>>> file manager
    and edit the file from there?
    Hosting Directory

    Comment


    • #3
      Originally posted by visio View Post
      why login as root? why not go to cpanel>>> file manager
      and edit the file from there?
      That would be good too..
      Kind regards,
      Jack Daniel.

      Cloud Hosting || Managed Dedicated Server || Webhosting UK Knowledgebase

      Comment

      Working...
      X