https://bugzilla.novell.com/show_bug.cgi?id=709716 https://bugzilla.novell.com/show_bug.cgi?id=709716#c0 Summary: zypp::ChangeLog::date() broken Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: rpmcruz@alunos.dcc.fc.up.pt QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0 Hi guys, It looks like zypp::ChangeLog::date() is broken. If you go through the packages, printing the changelog dates, you always get the same date (31 December 1969) for every package. "rpm -q --changelog" seems to work fine. This bug has been detected in openSUSE 11.2 Milestone, Factory, and SLED 11 SP2 Beta 2. If it helps, the code in question is pretty much this: ZyppResObject zobj = sel.installed().zyppObj(); ZyppPackage zpkg = castZyppPackage (zobj); if (zpkg) { const std::list <zypp::ChangelogEntry> &logs = zpkg->changelog(); for (std::list <zypp::ChangelogEntry>::const_iterator it = logs.begin(); it != logs.end(); it++) { std::string date (it->date().asString()), changes (it->text()); std::cout << date << ": " << changes.substr(0,6) << "...\n"; } } It doesn't help to use another date format, like it->date().form("%d %B %Y"). Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.