Get current date in DATE format */
| 962 | Get current date in DATE format |
| 963 | */ |
| 964 | void set_current_date(THD *thd, MYSQL_TIME *to) |
| 965 | { |
| 966 | thd->variables.time_zone->gmt_sec_to_TIME(to, thd->query_start()); |
| 967 | thd->used|= THD::TIME_ZONE_USED; |
| 968 | datetime_to_date(to); |
| 969 | } |
| 970 | |
| 971 | |
| 972 | /** |
no test coverage detected