Results 1 to 8 of 8

Thread: SugarCRM & Google Calendar integration problem

  1. #1
    swissblade is offline Sugar Community Member
    Join Date
    Jan 2007
    Location
    Athens, Greece
    Posts
    18

    Question SugarCRM & Google Calendar integration problem

    Hello everyone!

    I am using the MyCRM Connector Tool for Google Calendar module to integrate my installation with my Google calendar. However, I am facing a problem.
    Even though the meetings, Calls & Tasks get successfully created in the calendar, the date defaults to 1-1-1970, indicating a malformed or missing date for the event.
    The logs indicate that the date passed to the Google API is wrong, leaving me to think that some part of the code is messing up.
    For your information, the google_calendar_plg.php file seems to be doing all the logic...

    Since I started on this, I tried changing time formats (for my account, for the system and in the config.php file), but nothing happened.
    I can post any part of the code if someone has any ideas about this. I would really appreciate your help, because after 5 days of snooping around, I am starting to not even recognize basic PHP functions anymore, and integration is critical for me...!

    I am using SugarCRM ver 6.1.4 under a Windows 2008R2 machine, running the Default environment of a FastTrack Installer with MySQL.

    Thanks in advance!

  2. #2
    modida is offline Member
    Join Date
    Oct 2008
    Posts
    7

    Default Re: SugarCRM & Google Calendar integration problem

    Hi,

    Are you solved your problem ?
    I had the same problem and i found a solution.
    If you want i can send you the modification to do in the google_calendar_plg.php code

  3. #3
    swissblade is offline Sugar Community Member
    Join Date
    Jan 2007
    Location
    Athens, Greece
    Posts
    18

    Default Re: SugarCRM & Google Calendar integration problem

    No, I was unable to find a solution for this yet.
    All I could do is make the dates appear OK, but the time is always off, and no matter what offset I pass, it seems to be ignored...

    I would appreciate it if you could send me the code by pm!!!

    Thanks!

  4. #4
    modida is offline Member
    Join Date
    Oct 2008
    Posts
    7

    Default Re: SugarCRM & Google Calendar integration problem

    Hi,

    I just modify 2 lines in custom/include/Calls/google_calendar_plg.php.
    My problem is that i had specified dd/mm/yyyy as date format in my user en general preference but the value store in sugar database was always in YYYY/mm/dd format.
    In google_calendar_plg.php these 2 lines that swap date format from user preferences and so give a bad date.
    I just desactivate this function by modifing the line 82 and 83 like this :

    line 82 : date_start_in_db_fmt=$pd ; //$td->swap_formats($s["startDay"], $td->get_date_time_format(true, $current_user), $td->get_db_date_time_format());

    line 83 : $date_end_in_db_fmt1=$bean->date_due ; //$td->swap_formats($bean->date_due, $td->get_date_time_format(true, $current_user), $td->get_db_date_time_format());


    i hope that solution your problem

  5. #5
    swissblade is offline Sugar Community Member
    Join Date
    Jan 2007
    Location
    Athens, Greece
    Posts
    18

    Default Re: SugarCRM & Google Calendar integration problem

    Hey...Thanks!

    That worked! Finally, I got to see dates in my calendar!!!
    Any ideas on the time offset? All events are 3 hours behind!!!

    Thanks again!
    -------------------------------------------------------------------------
    Interactive Design | Web & Graphic Design
    http://www.interactive-design.gr

  6. #6
    blak3r's Avatar
    blak3r is offline Sugar Community Member
    Join Date
    Sep 2010
    Location
    Maryland
    Posts
    240

    Default Re: SugarCRM & Google Calendar integration problem

    Not familiar with the plugin but sounds like in your calendar it's displaying the GMT time instead of local time.
    Sugar 6 Pro, On-Site (Apache 2.0, MySQL 5.1, PHP 5.2.6)

    My SugarForge Projects:
    Email To Sugar - Archive emails in any mail client by adding a BCC line.
    Task Dashlets Plus- Adds custom dashlets for: tasks assigned to me by others, delegated tasks, overdue tasks, and open tasks past start date

    www.blakerobertson.com

  7. #7
    modida is offline Member
    Join Date
    Oct 2008
    Posts
    7

    Default Re: SugarCRM & Google Calendar integration problem

    Hi,

    I had the same probleme with another instance of sugarcrm.
    Does anyone find a solution for this problems of 3 hours behind ?

    Thanks a lot

    Modida

  8. #8
    tamit Guest

    Default Re: SugarCRM & Google Calendar integration problem

    Hi,
    I installed Google Calendar on my SugarCRM. It has been working ok. But something is wrong with hour! I don't know why?
    For example:
    In my SugarCRM, i selected 1pm on Log Call. Then, it has shown 6am on Google Calendar.
    I also changed timezone. Can everyone help me this?

    Thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 2011-06-14, 01:28 PM
  2. Google calendar integration with 5.5.1RC3 (Build 1197)
    By srobb in forum General Discussion
    Replies: 4
    Last Post: 2010-07-02, 04:27 PM
  3. google calendar integration
    By shamimwilson in forum Help
    Replies: 4
    Last Post: 2009-05-13, 05:07 AM
  4. Google Calendar integration
    By ehansen in forum Feature Requests
    Replies: 0
    Last Post: 2008-10-08, 09:05 PM
  5. Google Calendar Integration with OS Sugar?
    By MatthewG in forum Help
    Replies: 1
    Last Post: 2006-09-26, 12:17 PM

Tags for this Thread

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
  •