Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: CI-data-logger-server WattEye X10Svr SSDP_Server
Diff: TimeInterface.cpp
- Revision:
- 33:e49b25bdbfa5
- Parent:
- 26:9ee3fac64626
diff -r 00ee2ad29da0 -r e49b25bdbfa5 TimeInterface.cpp
--- a/TimeInterface.cpp	Sun Sep 13 14:55:01 2020 +0000
+++ b/TimeInterface.cpp	Sun Sep 13 15:06:14 2020 +0000
@@ -222,7 +222,7 @@
     return result;
 }
 
-struct tm_ex * TimeInterface::gmtime(const time_t * timer)
+struct tm_ex * TimeInterface::localtime(const time_t * timer)
 {
     time_t priv = *timer + get_tzo_min() * 60 + dst * 3600;
     struct tm * tmp = std::localtime(&priv);
@@ -240,7 +240,7 @@
     return &tm_ext;
 }
 
-struct tm_ex * TimeInterface::localtime(const time_t * timer)
+struct tm_ex * TimeInterface::gmtime(const time_t * timer)
 {
     struct tm * tmp = std::localtime(timer);