Skip to content

Commit

Permalink
fixed MMEM:DATE? and MMEM:TIME?
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed May 29, 2020
1 parent 0aa18f9 commit 9fa58b6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/eez/modules/psu/sd_card.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -558,10 +558,6 @@ void getDateTime(FileInfo &fileInfo, uint8_t *resultYear, uint8_t *resultMonth,
int minute = fileInfo.getModifiedMinute();
int second = fileInfo.getModifiedSecond();

uint32_t utc = datetime::makeTime(year, month, day, hour, minute, second);
uint32_t local = datetime::utcToLocal(utc, persist_conf::devConf.timeZone, (datetime::DstRule)persist_conf::devConf.dstRule);
datetime::breakTime(local, year, month, day, hour, minute, second);

if (resultYear) {
*resultYear = (uint8_t)(year - 2000);
*resultMonth = (uint8_t)month;
Expand Down

0 comments on commit 9fa58b6

Please sign in to comment.