diff options
Diffstat (limited to 'asterisk.c')
-rwxr-xr-x | asterisk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/asterisk.c b/asterisk.c index d9d4426e5..60a2edb5b 100755 --- a/asterisk.c +++ b/asterisk.c @@ -1199,7 +1199,7 @@ static char *cli_prompt(EditLine *el) break; case 'd': /* date */ memset(&tm, 0, sizeof(struct tm)); - gettimeofday(&tv, NULL); + tv = ast_tvnow(); if (localtime_r(&(tv.tv_sec), &tm)) { strftime(p, sizeof(prompt) - strlen(prompt), "%Y-%m-%d", &tm); } @@ -1256,7 +1256,7 @@ static char *cli_prompt(EditLine *el) #endif case 't': /* time */ memset(&tm, 0, sizeof(struct tm)); - gettimeofday(&tv, NULL); + tv = ast_tvnow(); if (localtime_r(&(tv.tv_sec), &tm)) { strftime(p, sizeof(prompt) - strlen(prompt), "%H:%M:%S", &tm); } |