From 3da27c86baa5d16a561bb078de34147dfd63b16f Mon Sep 17 00:00:00 2001 From: Vladimir Panteleev Date: Mon, 13 Sep 2010 01:44:38 +0300 Subject: [PATCH] Aesthetics --- wp2git.d | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp2git.d b/wp2git.d index c749283..9b55a70 100644 --- a/wp2git.d +++ b/wp2git.d @@ -100,11 +100,11 @@ int main(string[] args) return 0; } -const monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; - -// 2010-06-15T19:28:44Z -// Feb 6 11:22:18 2007 -0500 string ISO8601toRFC2822(string s) { + const monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; + + // 2010-06-15T19:28:44Z + // Feb 6 11:22:18 2007 -0500 return monthNames[.toInt(s[5..7])-1] ~ " " ~ s[8..10] ~ " " ~ s[11..13] ~ ":" ~ s[14..16] ~ ":" ~ s[17..19] ~ " " ~ s[0..4] ~ " +0000"; }