atd-calendar_date_select 1.11.20090110 → 1.11.20090216

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,11 +18,12 @@ Date.parseFormattedString = function (string) {
18
18
  if (d[7]) {
19
19
  hours = parseInt(d[7], 10);
20
20
  offset=0;
21
- is_pm = (d[9].toLowerCase()=="pm")
22
- if (is_pm && hours <= 11) hours+=12;
23
- if (!is_pm && hours == 12) hours=0;
21
+ if (d[9]) {
22
+ is_pm = (d[9].toLowerCase()=="pm");
23
+ if (is_pm && hours <= 11) hours+=12;
24
+ if (!is_pm && hours == 12) hours=0;
25
+ }
24
26
  date.setHours(hours);
25
-
26
27
  }
27
28
  if (d[8]) { date.setMinutes(d[8]); }
28
29
  if (d[10]) { date.setSeconds(d[10]); }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atd-calendar_date_select
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.20090110
4
+ version: 1.11.20090216
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Harper
@@ -9,11 +9,12 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-09 00:00:00 -08:00
12
+ date: 2009-02-16 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hoe
17
+ type: :development
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements: