<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -299,10 +299,16 @@ optional&lt;price_point_t&gt; commodity_pool_t::parse_price_directive(char * line)
   if (std::isdigit(time_field_ptr[0])) {
     symbol_and_price = next_element(time_field_ptr);
     if (! symbol_and_price) return none;
+
     datetime = parse_datetime(date_field + &quot; &quot; + time_field_ptr);
-  } else {
+  }
+  else if (std::isdigit(date_field_ptr[0])) {
     symbol_and_price = time_field_ptr;
-    datetime = parse_datetime(date_field);
+    datetime = datetime_t(parse_date(date_field));
+  }
+  else {
+    symbol_and_price = date_field_ptr;
+    datetime = CURRENT_TIME();
   }
 
   string symbol;</diff>
      <filename>src/pool.cc</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>bad1b1368031ce0b1de1517ca696d83351941eed</id>
    </parent>
  </parents>
  <author>
    <name>John Wiegley</name>
    <email>johnw@newartisans.com</email>
  </author>
  <url>http://github.com/jwiegley/ledger/commit/0283f444c5b8d4116ac20c458ef91a29b986688e</url>
  <id>0283f444c5b8d4116ac20c458ef91a29b986688e</id>
  <committed-date>2009-06-28T08:06:27-07:00</committed-date>
  <authored-date>2009-06-28T08:06:27-07:00</authored-date>
  <message>Date and time are optional for pricing directives</message>
  <tree>86d7c24d99a691b916771ec80516b0189d539fd4</tree>
  <committer>
    <name>John Wiegley</name>
    <email>johnw@newartisans.com</email>
  </committer>
</commit>
