mirror of
https://github.com/owntracks/recorder.git
synced 2024-11-15 18:08:28 -07:00
split out isotime
This commit is contained in:
parent
27336e9b0d
commit
0ae3df8466
@ -19,6 +19,7 @@
|
||||
#include "safewrite.h"
|
||||
#include "base64.h"
|
||||
#include "misc.h"
|
||||
#include "util.h"
|
||||
|
||||
|
||||
#define SSL_VERIFY_PEER (1)
|
||||
@ -111,13 +112,6 @@ JsonNode *extract(struct udata *ud, char *payload, char *tid, char *t, double *l
|
||||
return (json);
|
||||
}
|
||||
|
||||
static const char *isotime(time_t t) {
|
||||
static char buf[] = "YYYY-MM-DDTHH:MM:SSZ";
|
||||
|
||||
strftime(buf, sizeof(buf), "%FT%TZ", gmtime(&t));
|
||||
return(buf);
|
||||
}
|
||||
|
||||
static const char *ltime(time_t t) {
|
||||
static char buf[] = "HH:MM:SS";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user