Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2006-05-05 15:21:14


Bugs item #1482703, was opened at 2006-05-05 12:21
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1482703&group_id=7586

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: date_time
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Jeff Garland (az_sw_dude)
Summary: time_from_string silently misreads date

Initial Comment:
The following code snippet:

       boost::posix_time::ptime t3
            = boost::posix_time::time_from_string
            ("2006-03-02");
       cout << " t3 = " <<
           boost::posix_time::to_simple_string(t3)
           << endl;

Gives:

              t3 = 2006-May-24 14:03:02

Admittedly, the date-time string is misformatted,
as it doesn't have the HH-MM-SS fields, but
silently giving the wrong dete is likely
to be a very serious problem to users.

For the record, let me say that date_time
and boost is general are really very fine
work which I greatly appreciate.

   -Mike Albert
  MAlbert_at_[hidden]

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1482703&group_id=7586

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk