nickel
nickel copied to clipboard
Default to Today if no date is specified
Email from Mike S:
If you do not specify a day then I expected it to default to "today" but it appears to just swallow the time and return only the message.
For instance, the query "Do some stuff at 1300" returns:
<?xml version="1.0" encoding="UTF-8"?>
<naturalinputsResponse>
<message>Do some stuff</message>
</naturalinputsResponse>
But I expected something like this:
<?xml version="1.0" encoding="UTF-8"?>
<naturalinputsResponse>
<message>Do some stuff</message>
<occurrence>
<type>single</type>
<start_date>20110321</start_date>
<start_time>13:00:00</start_time>
</occurrence>
</naturalinputsResponse>