Re: GoogleCalendar.cfc troubles

2009-04-09 Thread Raymond Camden

The offset is passed to the CFC constructor:

cfset application.gCal = createObject(component,
GoogleCalendar).init(yourlogin,password,-5)

In the example above, the offset is -5.

FYI, I don't read cf-talk very often. Your best bet is to contact me
directly, or use the Contact Project Owner link at RIAForge.

On Wed, Apr 8, 2009 at 12:52 PM, Matt Blatchley m...@bridgeleaf.com wrote:

 I've recently downloaded Ray Camden's GoogleCalendar.cfc and I'm having a
 heck of time understanding how the timezone offset is supposed to work.  I'm
 calling to the CFC using the following code:

 cfset Da_date3 =
 #calendarYear#/#calendarMonth#/#DaysOfWeekArray[placement]#
 cfset events =
 application.CRM.getEvents(calid=calId,maxevents=50,orderby=starttime,sortdir=d,startMin=#Da_date3#,startMax=#Da_date3#)
 And the dates that come back in the query results are sometimes 5 hours
 behind.  But I've tried to make changes within the CFC by setting the cfset
 variables.tzOffset = 5 and a few other things, but I can't seem to get
 anything to work.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321487
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


GoogleCalendar.cfc troubles

2009-04-08 Thread Matt Blatchley

I've recently downloaded Ray Camden's GoogleCalendar.cfc and I'm having a
heck of time understanding how the timezone offset is supposed to work.  I'm
calling to the CFC using the following code:

cfset Da_date3 =
#calendarYear#/#calendarMonth#/#DaysOfWeekArray[placement]#
cfset events =
application.CRM.getEvents(calid=calId,maxevents=50,orderby=starttime,sortdir=d,startMin=#Da_date3#,startMax=#Da_date3#)
And the dates that come back in the query results are sometimes 5 hours
behind.  But I've tried to make changes within the CFC by setting the cfset
variables.tzOffset = 5 and a few other things, but I can't seem to get
anything to work.

Has anyone worked with this at all?  Do I have the startMin and startMax
formatted incorrectly cause I've played with that too with no success
I'm sure it's something I'm not doing right...

Matt


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321461
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


GoogleCalendar.cfc troubles

2009-04-08 Thread Matt Blatchley

I've recently downloaded Ray Camden's GoogleCalendar.cfc and I'm having a
heck of time understanding how the timezone offset is supposed to work.  I'm
calling to the CFC using the following code:

cfset Da_date3 =
#calendarYear#/#calendarMonth#/#DaysOfWeekArray[placement]#
cfset events =
application.CRM.getEvents(calid=calId,maxevents=50,orderby=starttime,sortdir=d,startMin=#Da_date3#,startMax=#Da_date3#)


And the dates that come back in the query results are sometimes 5 hours
behind.  But I've tried to make changes within the CFC by setting the cfset
variables.tzOffset = 5 and a few other things, but I can't seem to get
anything to work.

Has anyone worked with this at all?  Do I have the startMin and startMax
formatted incorrectly cause I've played with that too with no success
I'm sure it's something I'm not doing right...

Matt


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321462
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4