From: vunhat_minh Date: Tue, 1 Jul 2014 04:12:24 +0000 (+0900) Subject: fix date with 0 in prefix X-Git-Url: https://vcs.fsf.org/?p=rainbowstream.git;a=commitdiff_plain;h=6fefb8c9cfe9f1c9bfb836e1b901caa5ca6ed0b0 fix date with 0 in prefix --- diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index 86ec4be..8fb8a58 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -977,7 +977,7 @@ def cal(): month = random_rainbow(month) date = rel.pop(0) date = ' '.join([cycle_color(i) for i in date.split(' ')]) - today = os.popen('date +\'%d\'').read().strip() + today = str(int(os.popen('date +\'%d\'').read().strip())) # Display print month print date