summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorBranko Čibej <brane@apache.org>2001-06-28 01:32:37 +0000
committerBranko Čibej <brane@apache.org>2001-06-28 01:32:37 +0000
commit646b7248b4dedc0c034787955274aee5aabc1880 (patch)
treeb66eb6218b7b0e6a7e50f1b6b867a1956b62d812 /time
parent4c5b9f3b0425fab209dcae1f1d973cde3be81d69 (diff)
downloadapr-646b7248b4dedc0c034787955274aee5aabc1880.tar.gz
apr_explode_localtime was not setting result's tm_usec field.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61810 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time')
-rw-r--r--time/unix/time.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/time/unix/time.c b/time/unix/time.c
index bac305139..b1e1fde44 100644
--- a/time/unix/time.c
+++ b/time/unix/time.c
@@ -163,6 +163,7 @@ apr_status_t apr_explode_localtime(apr_exploded_time_t *result, apr_time_t input
mangotm = *localtime(&mango);
#endif
tm_to_exp(result, &mangotm, &mango);
+ result->tm_usec = input % APR_USEC_PER_SEC;
return APR_SUCCESS;
#endif /* __EMX__ */
}