tag 13388 notabug
thanks

On 01/08/2013 06:02 AM, dan...@controlid.com.br wrote:
>   
> 
> Hi, 
> 
>  When I try to get the date of 2012-10-21: 
> 
> root@cidLogin:~#
> date -d 20121021 
> 
> date: invalid date `20121021' 
> 
>  Is this a bug?

No.  It is a factor of daylight savings in your timezone.  Midnight does
not exist in your locale on that particular date.

You can use --utc to force the use of times where daylight savings has
no impact.  For more information, see the FAQ:
https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#The-date-command-is-not-working-right_002e

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to