DateTimeDialog.cpp   DateTimeDialog.cpp 
skipping to change at line 50 skipping to change at line 50
minute(0), minute(0),
second(0), second(0),
jd(0) jd(0)
{ {
ui = new Ui_dateTimeDialogForm; ui = new Ui_dateTimeDialogForm;
} }
DateTimeDialog::~DateTimeDialog() DateTimeDialog::~DateTimeDialog()
{ {
delete ui; delete ui;
ui=NULL; ui=Q_NULLPTR;
} }
void DateTimeDialog::createDialogContent() void DateTimeDialog::createDialogContent()
{ {
ui->setupUi(dialog); ui->setupUi(dialog);
StelCore *core = StelApp::getInstance().getCore(); StelCore *core = StelApp::getInstance().getCore();
double jd = core->getJD(); setDateTime(core->getJD());
// UTC -> local tz
setDateTime(jd + (core->getUTCOffset(jd)/24.0));
connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL OT(retranslate())); connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL OT(retranslate()));
connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())) ; connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())) ;
connect(ui->TitleBar, SIGNAL(movedTo(QPoint)), this, SLOT(handleMove dTo(QPoint))); connect(ui->TitleBar, SIGNAL(movedTo(QPoint)), this, SLOT(handleMove dTo(QPoint)));
// Use ISO 8601 to date formatting // Use ISO 8601 to date formatting
// See details: https://bugs.launchpad.net/stellarium/+bug/1655630 // See details: https://bugs.launchpad.net/stellarium/+bug/1655630
QString delimiter = QChar(0x2012); QString delimiter = QChar(0x2012);
ui->dateDelimiterLabel1->setText(delimiter); ui->dateDelimiterLabel1->setText(delimiter);
ui->dateDelimiterLabel2->setText(delimiter); ui->dateDelimiterLabel2->setText(delimiter);
 End of changes. 2 change blocks. 
4 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/