Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 36
  1. #11
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Time Zone Offset Problem

    Quote Originally Posted by totalsam View Post
    Hey,

    So how would you integrate this with ZC. I know the Time Zone Offset mod used MySQL functions to change the date, but there is apparently a better way to do it with php now pho has improved. Anyone got any ideas how to do this?
    There is 2 parts
    Setting the php time
    and fixing the mysql time

    This mod is designed to adjust the mysql database time

    The php time can be set with the set TZ=(your country/city)

  2. #12
    Join Date
    Mar 2010
    Posts
    41
    Plugin Contributions
    0

    Default Re: Time Zone Offset Problem

    Hi all

    I know this thread is abit old but my host is based in the states and I'm in the uk.

    Put this code in the .htaccess in the root of your site.

    SetEnv TZ Europe/London

    Works for me. Hope it helps.

    Rgds
    Badger

  3. #13
    Join Date
    Jul 2009
    Posts
    86
    Plugin Contributions
    0

    Default Re: Time Zone Offset Problem

    this mod is so useful, i wonder if i could also set the time of reviews to my local time just as what it does to create_account and customer_order ?

  4. #14
    Join Date
    Jul 2009
    Posts
    86
    Plugin Contributions
    0

    Default Re: Time Zone Offset Problem

    i use zencart 1.38a, do i need to update time zone offset mod to the newest version published on may 2nd 2010 ?

  5. #15
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Time Zone Offset Problem

    Quote Originally Posted by bear1728 View Post
    this mod is so useful, i wonder if i could also set the time of reviews to my local time just as what it does to create_account and customer_order ?
    The basic process is here
    http://www.zen-cart.com/forum/showpo...&postcount=111

    Just find the relevent files that apply to your situation to alter

  6. #16
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Time Zone Offset Problem

    Quote Originally Posted by bear1728 View Post
    i use zencart 1.38a, do i need to update time zone offset mod to the newest version published on may 2nd 2010 ?
    No you don't
    Use the files for 1.38a

  7. #17
    Join Date
    Jul 2009
    Posts
    86
    Plugin Contributions
    0

    Default Re: Time Zone Offset Problem

    thanks
    then what do i set the customer reviews time to my local time?

  8. #18
    Join Date
    Jul 2009
    Posts
    86
    Plugin Contributions
    0

    Default Re: Time Zone Offset Problem

    i didn't notice your first response to my questions

    i check that post then, i find totally 2 now() concerning reviews

    /admin/reviews.php
    Line #30 : last_modified = now() where reviews_id = '" . (int)$reviews_id . "'");

    /includes/modules/pages/product_reviews_write/header_php.php
    VALUES (roductsID, :customersID, :customersName, :rating, now(), " . $review_status . ")";

    i should modify these 2 now() above? or any other files i need to modify?

  9. #19
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Time Zone Offset Problem

    Quote Originally Posted by bear1728 View Post
    i didn't notice your first response to my questions

    i check that post then, i find totally 2 now() concerning reviews

    /admin/reviews.php
    Line #30 : last_modified = now() where reviews_id = '" . (int)$reviews_id . "'");

    /includes/modules/pages/product_reviews_write/header_php.php
    VALUES (roductsID, :customersID, :customersName, :rating, now(), " . $review_status . ")";

    i should modify these 2 now() above? or any other files i need to modify?
    I have never used reviews so have never had the need to alter these.
    The 2 lines look right so try it and see if it works correctly for you

  10. #20
    Join Date
    Jul 2009
    Posts
    86
    Plugin Contributions
    0

    Default Re: Time Zone Offset Problem

    i modified those 2 files, it works

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Time Zone Offset problem
    By trappersam in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 18 Oct 2007, 12:08 PM
  2. Time Zone Offset
    By harry2cool in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 26 Jul 2006, 09:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg