<div dir="ltr">Hi,<div><br></div><div>I think this is problem with the ruby version. I did a quick test, and 1.8.7 accepts your command, while 1.9 and 2.1 need dd/mm/yy.</div><div>We will try to find a way to force the same format, or at least we will document which one should be used [1] in each case.</div>
<div><br></div><div>Regards.</div><div><br></div><div>[1] <a href="http://dev.opennebula.org/issues/3037">http://dev.opennebula.org/issues/3037</a><br></div><div><br></div><div><br></div><div class="gmail_extra"><br clear="all">
<div><div dir="ltr">--<br><div>Carlos Martín, MSc<br>Project Engineer</div><div>OpenNebula - Flexible Enterprise Cloud Made Simple<br><div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
</div></div></div>
<br><br><div class="gmail_quote">On Wed, Jul 2, 2014 at 6:41 PM, Nicolas Bélan <span dir="ltr"><<a href="mailto:nicolas.belan@gmail.com" target="_blank">nicolas.belan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
I am using a script to generate usage stats.<br>
But the update to 4.6.1 breaks my script. I have found that the
error is on oneacct:<br>
<br>
[oneadmin@sam01 ~]$ LANG=C oneacct -s '06/01/2014 00:00:00' -e
'06/30/2014 23:59:59'<br>
invalid argument: -e 06/30/2014 23:59:59<br>
<br>
Using: <br>
[oneadmin@sam01 ~]$ oneacct -s '01/06/2014 00:00:00' -e
'30/06/2014 23:59:59'<br>
<br>
It is working.<br>
<br>
In the doc
<a href="http://docs.opennebula.org/4.6/administration/users_and_groups/accounting.html" target="_blank">http://docs.opennebula.org/4.6/administration/users_and_groups/accounting.html</a><br>
We have:<br>
<br>
The time can be written as <code><span>month/day/year</span>
<span>hour:minute:second</span></code>, or any other
similar format, e.g <code><span>month/day</span> <span>hour:minute</span></code><br>
<br>
Is it an error on the doc or on the oneacct tool ?<br>
<br>
Thank you<br>
<br>
Best regards,<br>
Nicolas.<br>
<code><span><br>
</span></code>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div></div>