Bug #3037

Different ruby versions need different time formats

Added by Carlos Martín almost 7 years ago. Updated over 6 years ago.

Status:NewStart date:07/11/2014
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:CLI
Target version:-
Resolution: Pull request:
Affected Versions:OpenNebula 4.6

Description

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

Associated revisions

Revision f944559c
Added by Javi Fontan almost 7 years ago

bug #3037: parse US time in ruby > 1.8.7

Revision 5550ccf3
Added by Javi Fontan over 6 years ago

Revert "bug #3037: parse US time in ruby > 1.8.7"

This reverts commit f944559c51389a107d4be6e8f6b8e560a4faad70.

History

#1 Updated by Ruben S. Montero almost 7 years ago

  • Status changed from New to Assigned
  • Assignee set to Javi Fontan
  • Target version set to 67

#2 Updated by Ruben S. Montero almost 7 years ago

  • Target version changed from 67 to Release 4.10

#3 Updated by Javi Fontan almost 7 years ago

  • % Done changed from 0 to 100
  • Resolution set to fixed

#4 Updated by Ruben S. Montero over 6 years ago

  • Status changed from Assigned to New
  • Target version deleted (Release 4.10)
  • Resolution deleted (fixed)

#5 Updated by Ruben S. Montero over 6 years ago

  • % Done changed from 100 to 0

Also available in: Atom PDF