[Kstars-devel] branches/kstars/summer/kstars/kstars/tools
Prakash Mohan
prak902000 at gmail.com
Sun Jun 28 08:41:34 CEST 2009
SVN commit 988426 by prakash:
Fixing a bug in the storage of dates. It should've been stored in ddMMyyyy format.
CCMAIL: kstars-devel at kde.org
M +2 -2 observinglist.cpp
--- branches/kstars/summer/kstars/kstars/tools/observinglist.cpp #988425:988426
@@ -847,7 +847,7 @@
QStringList fields = line.split( '|' );
geo = ks->data()->locationNamed( fields[0], fields[1], fields[2] );
ui->SetLocation -> setText( geo -> fullName() );
- dt.setDate( QDate::fromString( fields[3], "dMyyyy" ) );
+ dt.setDate( QDate::fromString( fields[3], "ddMMyyyy" ) );
ui->DateEdit->setDate( dt.date() );
while ( ! istream.atEnd() ) {
line = istream.readLine();
@@ -979,7 +979,7 @@
}
QTextStream ostream( &f );
ostream << SessionName << endl;
- ostream << geo->name() << "|" <<geo->province() << "|" << geo->country() << "|" << dt.date().toString("dMyyyy") << endl;
+ ostream << geo->name() << "|" <<geo->province() << "|" << geo->country() << "|" << dt.date().toString("ddMMyyyy") << endl;
foreach ( SkyObject* o, SessionList() ) {
if ( o->name() == "star" ) {
ostream << o->name() << " " << o->ra0()->Hours() << " " << o->dec0()->Degrees() << endl;
More information about the Kstars-devel
mailing list