diff options
Diffstat (limited to 'util/src')
-rw-r--r-- | util/src/date_time.c | 8 | ||||
-rw-r--r-- | util/src/rand.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/util/src/date_time.c b/util/src/date_time.c index ad15774..55f26d5 100644 --- a/util/src/date_time.c +++ b/util/src/date_time.c @@ -731,6 +731,7 @@ axutil_date_time_get_month( return (date_time->mon + 1); } +/* Deprecated...should have been get_day, remove in 1.8 */ AXIS2_EXTERN int AXIS2_CALL axutil_date_time_get_date( axutil_date_time_t *date_time, @@ -738,6 +739,13 @@ axutil_date_time_get_date( { return (date_time->day); } +AXIS2_EXTERN int AXIS2_CALL +axutil_date_time_get_day( + axutil_date_time_t *date_time, + const axutil_env_t *env) +{ + return (date_time->day); +} AXIS2_EXTERN int AXIS2_CALL axutil_date_time_get_hour( diff --git a/util/src/rand.c b/util/src/rand.c index c3a7aa9..44057a8 100644 --- a/util/src/rand.c +++ b/util/src/rand.c @@ -57,7 +57,7 @@ axutil_rand_get_seed_value_based_on_time( axutil_date_time_t *date = axutil_date_time_create(env); unsigned int rand_var = axutil_date_time_get_year(date, env); rand_var += axutil_date_time_get_month(date, env); - rand_var += axutil_date_time_get_date(date, env); + rand_var += axutil_date_time_get_day(date, env); rand_var += axutil_date_time_get_hour(date, env); rand_var += axutil_date_time_get_minute(date, env); rand_var += axutil_date_time_get_second(date, env); |