Project:Agreservations
Version:7.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Reserving a room manually works fine but when using widget a conflict exists when none is there. Being a guessing man that I am with all of this I think it has something to do with the jquery picker in your search widget or the code for the widget. I have tried every configuration I can think of. Date type format, every setting possible for category and the date field settings. Still the same result every time. I am stumped.

Ok after looking further I found this in database
field_agres_rdate_value field_agres_rdate_value2
2012-01-31 21:00:00 2012-02-01 16:00:00

The reservation clearly shows
2012-01-31 21:15:00 2012-02-01 10:00:00

This is what the node shows
Tuesday, 31 January, 2012 - 15:00 to Wednesday, 1 February, 2012 - 10:00

So the rdate value is totally different from everything else.

Comments

#1

Any thoughts on this Agill? What is setting this time value in rdate? Can it be hard coded? The category is set to 15:00 and 10:00 which I presume is the reason values are correct for node.

rdate is ok I figured that out with changing checkin checkout values and observing changes.

Now to the heart of the matter. Using widget to reserve rooms does not acknowledge checkin-checkout times from previous reservations. It says "Not enough free units found." Doing a manual reservation no problem. Looks like something in the communication between the widget and the resource conflict module.

#2

Hello,

this has to do with the datetime fields time zone conversion setting, and can be set
here: yoursiteurl/admin/structure/types/manage/agreservation/fields/field_agres_rdate
at the bottom of this fields configuration page.

the dafault setting is "site's time zone".

#3

Agill,
I tried your suggestion and it helped greatly. Not only did I need to set rdate field to utc but also regional to utc in order for it to work. Yea!
Thx!!!

nobody click here