mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-28 23:15:59 +00:00
add a library of timeval manipulation functions, and change a large number of usses to use the new functions (bug #4504)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3295,7 +3295,7 @@ static int play_message_datetime(struct ast_channel *chan, struct ast_vm_user *v
|
||||
#if 0
|
||||
/* Set the DIFF_* variables */
|
||||
localtime_r(&t, &time_now);
|
||||
gettimeofday(&tv_now,NULL);
|
||||
tv_now = ast_tvnow();
|
||||
tnow = tv_now.tv_sec;
|
||||
localtime_r(&tnow,&time_then);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user