sunpy/sunpy — pull request #1227 by modassir (2014-12-11 11:30:27+00:00)
Title: Fixing: parse_time does not always return a datetime object #1191

Issue: https://github.com/sunpy/sunpy/issues/1191

I am getting this Output for the above input,
```
In [1]: import sunpy.lightcurve
In [2]: from sunpy.time import parse_time

In [3]: glc = sunpy.lightcurve.GOESLightCurve.create("2014-01-01", "2014-01-02")
In [4]: lc_time = parse_time(glc.data.index[0])
In [5]: lc_time
Out[5]: datetime.datetime(2014, 1, 1, 0, 0, 0, 421999)
```
and for normal string input:
```
In [6]: str_time = parse_time("2014-01-01")
In [7]: str_time
Out[7]: datetime.datetime(2014, 1, 1, 0, 0)
```