chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Assume initial digits in a track name are a sort key even without the
[disorder]
/
lib
/
dateparse.c
diff --git
a/lib/dateparse.c
b/lib/dateparse.c
index 45de40c6542903ac0c7a303f89f021c5d455c969..f390d0c778186a57433359cb8711df64ca245bad 100644
(file)
--- a/
lib/dateparse.c
+++ b/
lib/dateparse.c
@@
-22,8
+22,7
@@
* @brief Date parsing
*/
* @brief Date parsing
*/
-#include <config.h>
-#include "types.h"
+#include "common.h"
#include <time.h>
#include <time.h>
@@
-39,6
+38,9
@@
static const char *const datemsk[] = {
/* ISO format */
"%Y-%m-%d %H:%M:%S",
static const char *const datemsk[] = {
/* ISO format */
"%Y-%m-%d %H:%M:%S",
+ /* Generic time, same day */
+ "%H:%M:%S",
+ "%H:%M",
/* "%Y-%m-%d %H:%M:%S %Z" - no, not sensibly supported anywhere */
/* Locale-specific date + time */
"%c",
/* "%Y-%m-%d %H:%M:%S %Z" - no, not sensibly supported anywhere */
/* Locale-specific date + time */
"%c",
@@
-46,9
+48,6
@@
static const char *const datemsk[] = {
/* Locale-specific time, same day */
"%X",
"%EX",
/* Locale-specific time, same day */
"%X",
"%EX",
- /* Generic time, same day */
- "%H:%M",
- "%H:%M:%S",
NULL,
};
NULL,
};