Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different ruby versions need different time formats #781

Closed
OpenNebulaProject opened this issue Nov 20, 2017 · 2 comments

Comments

@OpenNebulaProject
Copy link

commented Nov 20, 2017


Author Name: Carlos Martín (Carlos Martín)
Original Redmine Issue: 3037, https://dev.opennebula.org/issues/3037
Original Date: 2014-07-11
Original Assignee: Javi Fontan


Reported in the mailing list:
http://lists.opennebula.org/pipermail/users-opennebula.org/2014-July/045409.html

$ ruby -v
ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]

$ oneacct -s '06/01/2014 00:00:00' -e '06/30/2014 23:59:59'
Showing active history records from Sun Jun 01 00:00:00 +0200 2014 to Mon Jun 30 23:59:59 +0200 2014

$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

$ oneacct -s '06/01/2014 00:00:00' -e '06/30/2014 23:59:59'
invalid argument: -e 06/30/2014 23:59:59

$ oneacct -s '01/06/2014 00:00:00' -e '30/06/2014 23:59:59'
Showing active history records from 2014-06-01 00:00:00 +0200 to 2014-06-30 23:59:59 +0200

$ ruby -v
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]

$ oneacct -s '06/01/2014 00:00:00' -e '06/30/2014 23:59:59'
invalid argument: -e 06/30/2014 23:59:59

$ oneacct -s '01/06/2014 00:00:00' -e '30/06/2014 23:59:59'
Showing active history records from 2014-06-01 00:00:00 +0200 to 2014-06-30 23:59:59 +0200

@stale

This comment has been minimized.

Copy link

commented Mar 6, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. The OpenNebula Dev Team

@stale stale bot added the Status: Abandoned label Mar 6, 2019

@vholer vholer added this to the Release 5.10 milestone Apr 2, 2019

@stale stale bot removed the Status: Abandoned label Apr 2, 2019

@al3xhh

This comment has been minimized.

Copy link
Member

commented Apr 5, 2019

I have checked, and from ruby 1.9.3 which is the Ruby version we support, the correct way to do this is the same for all version, which is the following:

oneacct -s '01/06/2014 00:00:00' -e '30/06/2014 23:59:59'
Showing active history records from 2014-06-01 00:00:00 +0200 to 2014-06-30 23:59:59 +0200

So the format is DD/MM/YYYY.

@al3xhh al3xhh closed this Apr 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.