mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-10 08:12:35 +02:00
18 lines
837 B
Diff
18 lines
837 B
Diff
diff --git a/base/nvti.c b/base/nvti.c
|
|
index 5a9df61..6c8a59b 100644
|
|
--- a/base/nvti.c
|
|
+++ b/base/nvti.c
|
|
@@ -307,10 +307,10 @@ parse_nvt_timestamp (const gchar *str_time)
|
|
|
|
/* 2011-08-09 08:20:34 +0200 (Tue, 09 Aug 2011) */
|
|
memset (&tm, 0, sizeof (struct tm));
|
|
- if (strptime ((char *) str_time, "%F %T %z", &tm) == NULL)
|
|
+ if (strptime ((char *) str_time, "%Y-%m-%d %T +%H%M", &tm) == NULL && strptime ((char *) str_time, "%Y-%m-%d %T -%H%M", &tm) == NULL)
|
|
{
|
|
memset (&tm, 0, sizeof (struct tm));
|
|
- if (strptime ((char *) str_time, "%a %b %d %T %Y %z", &tm) == NULL)
|
|
+ if (strptime ((char *) str_time, "%Y-%m-%d %T +%H%M", &tm) == NULL && strptime ((char *) str_time, "%Y-%m-%d %T -%H%M", &tm) == NULL)
|
|
{
|
|
g_warning ("%s: Failed to parse time: %s", __func__, str_time);
|
|
return 0;
|