Hey there.
I have a project i'm working on to display all meetings for a given sales agent on a google map. It is already finished and works great, but the implementation is lacking.
For my new version, I want to authenticate sales agents through soap, and use sugar's abilities for time conversion etc.
My problem is that I want to scan the meetings for a particular DATE in a local timezone.
BUT:: The database stores all meetings in GMT.
Now if the time offset is 5, then meetings for 7pm would already show for the next GMT date in the database. Get it?
I would like to know how I can elegantly overcome this problem. Does soap have a method to superimpose the database date_start in meetings? That way, I could pass on the local date I want to do the look-up for and not worry about conversion.
If that's too much to ask, is there a sugar method that will give me a datetime start and endpoint in gmt that corresponds with my local date im trying to do the lookup for? For example: 22 june 10pm through 23 june 10pm gmt corresponds with 23 june gmt-2.
If none of that is possible, I can rewrite my old selfmade method, but It gets complicated with daylight saving time exceptions etc. This is the exact reason why I would like to use a better way and handle this.
Finally, I also tried to scan the database to find where user timezone preferences are stored, but couldn't find it. Is there any chance someone can point out to me where to find it?
I'm new to soap, and only started to learn sugar crm. Thanks for your tremendous help.


LinkBack URL
About LinkBacks



Reply With Quote
Date formatting is explicitly turned off in soap via $disable_date_format = true, so everything will be passed and returned in GMT.
Bookmarks