Who ever said that at the Apple store is wrong. The initial warranty is one year, and you can get AppleCare to extend that warranty. If the design was to last one year it would not be economical for Apple to offer a warranty for longer than that period.
Take the iPhone to the Apple store genius bar and talk to the techs about replacing the battery in it. Battery replacement is $79 (US).