Results 1 to 9 of 9

Thread: Calendar in 5.5 is showing wrong date

  1. #1
    Lakestone is offline Senior Member
    Join Date
    Oct 2009
    Posts
    24

    Default Calendar in 5.5 is showing wrong date

    The week should start with monday if its european standard, and in SugarCE 5.5 the calendar finally does just this. However, the date is off by one day, eg: today is 10 (wednesday) but the calendar shows the date 9.

    So which variable(s) do I need to manipulate in DateTimeUtil.php ?
    I tried adding +1 to the getDay() function and it helped somewhat, but March started at 0 and got 32 days .

  2. #2
    Lakestone is offline Senior Member
    Join Date
    Oct 2009
    Posts
    24

    Default Re: Calendar in 5.5 is showing wrong date

    bump......

  3. #3
    Lakestone is offline Senior Member
    Join Date
    Oct 2009
    Posts
    24

    Default Re: Calendar in 5.5 is showing wrong date

    bump......

  4. #4
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: Calendar in 5.5 is showing wrong date

    Quote Originally Posted by Lakestone View Post
    The week should start with monday if its european standard, and in SugarCE 5.5 the calendar finally does just this. However, the date is off by one day, eg: today is 10 (wednesday) but the calendar shows the date 9.

    So which variable(s) do I need to manipulate in DateTimeUtil.php ?
    I tried adding +1 to the getDay() function and it helped somewhat, but March started at 0 and got 32 days .
    I'm surprised you calendar has monday as the start date as it is still showing as sunday on mine

    have a look at http://www.sugarcrm.com/forums/showt...light=calendar which has instructions on how to change it to monday
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  5. #5
    Lakestone is offline Senior Member
    Join Date
    Oct 2009
    Posts
    24

    Default Re: Calendar in 5.5 is showing wrong date

    Quote Originally Posted by mikesolomon View Post
    I'm surprised you calendar has monday as the start date as it is still showing as sunday on mine

    have a look at http://www.sugarcrm.com/forums/showt...light=calendar which has instructions on how to change it to monday
    These changes now made my week start at tuesday and the date is still incorrect (says Friday 11)

  6. #6
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default Re: Calendar in 5.5 is showing wrong date

    Is there a way you can get it back to staring on Sunday like its supposed to and then implementing the Solomon tweak?

    If you happen to figure it out please reply back with the solution! This might even be a bug so you might want to file it over there after making sure its not some simple problem int he settings.

    Good luck, Paris
    Paris Templin, CEO

    Templin Computing LLC- Washington State based IT and Onlne Backup Specialiosts. We specialize in providing CRM and backup solutions to small and medium businesses.

    http://www.templincomputing.net

  7. #7
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: Calendar in 5.5 is showing wrong date

    I would copy the calendar files from a clean installation of 5.5 which should get it back to showing the correct day then try my suggestion
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  8. #8
    Lakestone is offline Senior Member
    Join Date
    Oct 2009
    Posts
    24

    Default Re: Calendar in 5.5 is showing wrong date

    Quote Originally Posted by ptemplin7 View Post
    Is there a way you can get it back to staring on Sunday like its supposed to and then implementing the Solomon tweak?

    If you happen to figure it out please reply back with the solution! This might even be a bug so you might want to file it over there after making sure its not some simple problem int he settings.

    Good luck, Paris
    This was it! However the dates under week are still not showing correctly - which variables do I need to change for this?
    Last edited by Lakestone; 2010-03-15 at 02:42 PM.

  9. #9
    Lakestone is offline Senior Member
    Join Date
    Oct 2009
    Posts
    24

    Default Re: Calendar in 5.5 is showing wrong date

    upupup......

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Email showing the wrong time
    By eskimo111273 in forum Help
    Replies: 1
    Last Post: 2009-03-25, 08:57 PM
  2. Replies: 1
    Last Post: 2007-12-14, 08:07 AM
  3. Replies: 6
    Last Post: 2007-10-05, 06:37 PM
  4. Replies: 6
    Last Post: 2006-10-02, 09:49 PM
  5. Replies: 0
    Last Post: 2005-09-02, 09:55 AM

Bookmarks

Posting Permissions

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