mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Fix the function name: RFC3164 -> RFC3339
This commit is contained in:
parent
97e7a82be2
commit
bb30535bb6
@ -924,7 +924,7 @@ void SiWriteSysLog(SERVER *s, char *typestr, char *hubname, wchar_t *message)
|
|||||||
// Date and time
|
// Date and time
|
||||||
LocalTime(&st);
|
LocalTime(&st);
|
||||||
if(s->StrictSyslogDatetimeFormat){
|
if(s->StrictSyslogDatetimeFormat){
|
||||||
GetDateTimeStrRFC3164(datetime, sizeof(datetime), &st, GetCurrentTimezone());
|
GetDateTimeStrRFC3339(datetime, sizeof(datetime), &st, GetCurrentTimezone());
|
||||||
}else{
|
}else{
|
||||||
GetDateTimeStrMilli(datetime, sizeof(datetime), &st);
|
GetDateTimeStrMilli(datetime, sizeof(datetime), &st);
|
||||||
}
|
}
|
||||||
|
@ -1631,8 +1631,8 @@ void GetDateTimeStrMilli(char *str, UINT size, SYSTEMTIME *st)
|
|||||||
st->wMilliseconds);
|
st->wMilliseconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the date and time string in RFC3164 format (example: 2017-09-27T18:25:55.434-9:00)
|
// Get the date and time string in RFC3339 format (example: 2017-09-27T18:25:55.434-9:00)
|
||||||
void GetDateTimeStrRFC3164(char *str, UINT size, SYSTEMTIME *st, int timezone_min){
|
void GetDateTimeStrRFC3339(char *str, UINT size, SYSTEMTIME *st, int timezone_min){
|
||||||
// Validate arguments
|
// Validate arguments
|
||||||
if (str == NULL || st == NULL)
|
if (str == NULL || st == NULL)
|
||||||
{
|
{
|
||||||
|
@ -248,7 +248,7 @@ void GetTimeStrEx64(wchar_t *str, UINT size, UINT64 sec64, LOCALE *locale);
|
|||||||
void GetDateStrEx64(wchar_t *str, UINT size, UINT64 sec64, LOCALE *locale);
|
void GetDateStrEx64(wchar_t *str, UINT size, UINT64 sec64, LOCALE *locale);
|
||||||
void GetTimeStrMilli64(char *str, UINT size, UINT64 sec64);
|
void GetTimeStrMilli64(char *str, UINT size, UINT64 sec64);
|
||||||
void GetTimeStr64(char *str, UINT size, UINT64 sec64);
|
void GetTimeStr64(char *str, UINT size, UINT64 sec64);
|
||||||
void GetDateTimeStrRFC3164(char *str, UINT size, SYSTEMTIME *st, int timezone_min);
|
void GetDateTimeStrRFC3339(char *str, UINT size, SYSTEMTIME *st, int timezone_min);
|
||||||
UINT64 SafeTime64(UINT64 sec64);
|
UINT64 SafeTime64(UINT64 sec64);
|
||||||
bool Run(char *filename, char *arg, bool hide, bool wait);
|
bool Run(char *filename, char *arg, bool hide, bool wait);
|
||||||
bool RunW(wchar_t *filename, wchar_t *arg, bool hide, bool wait);
|
bool RunW(wchar_t *filename, wchar_t *arg, bool hide, bool wait);
|
||||||
|
Loading…
Reference in New Issue
Block a user