summaryrefslogtreecommitdiff
path: root/platform/nacl
diff options
context:
space:
mode:
Diffstat (limited to 'platform/nacl')
-rw-r--r--platform/nacl/os_nacl.cpp6
-rw-r--r--platform/nacl/pepper_main.cpp2
2 files changed, 6 insertions, 2 deletions
diff --git a/platform/nacl/os_nacl.cpp b/platform/nacl/os_nacl.cpp
index de6a15525b..e2a92ee8c7 100644
--- a/platform/nacl/os_nacl.cpp
+++ b/platform/nacl/os_nacl.cpp
@@ -249,7 +249,11 @@ OS::Date OSNacl::get_date(bool utc) const {
lt=localtime(&t);
Date ret;
ret.year=lt->tm_year;
- ret.month=(Month)lt->tm_mon;
+
+ // Index starting at 1 to match OS_Unix::get_date
+ // and Windows SYSTEMTIME and tm_mon follows the typical structure
+ // of 0-11, noted here: http://www.cplusplus.com/reference/ctime/tm/
+ ret.month=(Month)(lt->tm_mon+1);
ret.day=lt->tm_mday;
ret.weekday=(Weekday)lt->tm_wday;
ret.dst=lt->tm_isdst;
diff --git a/platform/nacl/pepper_main.cpp b/platform/nacl/pepper_main.cpp
index fe10db19a9..6b81776624 100644
--- a/platform/nacl/pepper_main.cpp
+++ b/platform/nacl/pepper_main.cpp
@@ -198,7 +198,7 @@ NPError NPP_New(NPMIMEType pluginType,
NPError NPP_Destroy(NPP instance, NPSavedData** save) {
nacl_cleanup();
-
+
return NPERR_NO_ERROR;
}