We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4b6e02 commit ac19030Copy full SHA for ac19030
src/ArduinoCellular.cpp
@@ -249,9 +249,9 @@ Time parseTimestamp(const String ×tampStr) {
249
250
int firstSlashIndex = date.indexOf('/');
251
int secondSlashIndex = date.lastIndexOf('/');
252
- day = date.substring(0, firstSlashIndex).toInt();
+ year = date.substring(0, firstSlashIndex).toInt() + 2000;
253
month = date.substring(firstSlashIndex + 1, secondSlashIndex).toInt();
254
- year = date.substring(secondSlashIndex + 1).toInt() + 2000;
+ day = date.substring(secondSlashIndex + 1).toInt();
255
256
int firstColonIndex = time.indexOf(':');
257
int secondColonIndex = time.lastIndexOf(':');
0 commit comments