Modify

Opened 6 years ago

Last modified 4 years ago

#11223 new defect

setting date is wrong

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: date Cc:

Description

I cannot correctly set date (though I can correctly set time) witg the date command. The data on the command line is erroneously interpreted.

my setup firt:
# cat /proc/version
Linux version 3.2.9 (openwrt@OpenWRTBuild) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Tue Mar 13 20:33:19 MST 2012

the time setting (OK):
# date +%T -s "22:50:00"
22:50:00

the date setting (all wrong):
# date '+%Y%m%d' -s "20120403"
20060812
# date '+%Y%m%d' -s "20240403"
20070824
# date '+%Y' -s "2012"
2007
# date '+%m' -s "04"
08
# date '+%d' -s "03"
24

my router is a TP-Link MR3020.

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by hupukulu

(formatting all wrong, I redo it)

I cannot correctly set date (though I can correctly set time) with the date command. The data on the command line is erroneously interpreted.

my setup firt:

# cat /proc/version
Linux version 3.2.9 (openwrt@OpenWRTBuild) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Tue Mar 13 20:33:19 MST 2012

the time setting (OK):

# date +%T -s "22:50:00"
22:50:00

the date setting (all wrong):

# date '+%Y%m%d' -s "20120403"
20060812 
# date '+%Y%m%d' -s "20240403"
20070824
# date '+%Y' -s "2012"
2007
# date '+%m' -s "04"
08
# date '+%d' -s "03"
24

my router is a TP-Link MR3020.

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.