delivered the opinion of the court.
This action was instituted to recover damages for personal injuries alleged to have been suffered by plaintiff as the result of a fall upon an ice-covered sidewalk.
1. The trial court excluded the notice given to the city, and granted a nonsuit. Plaintiff appealed from the judgment entered in favor of the city, and presents the court’s ruling in excluding the notice as the principal ground for a reversal.
*126Section 3289, Revised Codes, provides: “Before any city or town jn this state shall be liable for damages for, or on account of, any injury or loss alleged to have been received or suffered by reason of any defect in any bridge, street, road, sidewalk, # # * in sai¿ city or town, the person so alleged to be injured, or some one in his behalf, shall give to the city or town council, or trustee, or other governing body of such city or town, within sixty days after the alleged injury, notice thereof; said notice to contain the time when and the place where said injury is alleged to have occurred.”
The notice given to the city states that the injuries were received “on or about the twenty-second day of January, 1916,” while plaintiff’s evidence disclosed that the accident occurred on January 24: It was because of this discrepancy that the notice was excluded.
Counsel for appellant insists that the statute should be construed liberally, and that substantial compliance with its provisions is all that should be required, in the absence of a showing that the city was misled to its prejudice. If the statute dealt with the rights of individuals inter sese, counsel’s contention could scarcely be questioned; but when it is sought to apply that rule of construction to a statute governing the liability of a municipality, the argument in its favor runs counter to certain fundamental principles.
A city of this state is one of the governmental agencies of the [1] state, created by statute and indebted to the state for its right to exist. It enjoys such privileges only as are conferred upon it, and is subject to such liabilities only as are imposed by law. The state might refuse its'consent that the city be sued for the torts of its officers, or it might give its consent, coupled with such conditions and limitations as it sees fit to impose. It has consented conditionally, and the city may rightfully insist upon a strict compliance with the conditions.
Before any liability whatever attaches for injuries resulting [2] from defective streets or sidewalks, the city, must have received the notice prescribed by section 3289 above. That section *127[3] is not in any sense a statute of limitations. Its provisions cannot be waived, for they are intended for tbe benefit of the public whose money must be appropriated to the payment of any damages recovered.
With these elementary rules in view, can it be said that a [4] claimant complies with the statute who notifies the city that his injuries were received on or about January 22, which date is not in fact the true date ? The purpose of the notice is to enable the city officials to investigate and to determine from such investigation whether the city shall settle the claim or defend against it, and, if the latter alternative is chosen, to secure evidence. The city is entitled to know the time when it is claimed the accident occurred, in order that it may investigate and avoid unnecessary expense if it is ascertained that the claim is meritorious. Of necessity, the statute must be general in its terms. It is not possible to prescribe a different form of notice for every imaginable injury. If the accident resulted from a structural defect in a sidewalk, the particular date might not be of serious consequence to the city; but if it is claimed, as in this ease, that the injuries resulted from ice upon the sidewalk, the exact date might become of the utmost importance. In this latitude where there is generally abundant snowfall during the winter months, but where there is intermittent thawing and freezing, a sidewalk may be covered with ice on one day but entirely free from it on the next. If the claimant may give notice that the accident occurred on a particular day and prove that it occurred two, four, six or eight days prior or subsequent thereto, the very purpose of the notice would be defeated, and to hold that this may be done is to emasculate the statute, rather than to construe it.
A like provision is found in the statutes of nearly every state, and it is held quite uniformly that the notice must state accurately the time when the injuries were received. And this construction is not unreasonable. The claimant is in a better position than the city to know when his injuries were received, and the obvious purpose of the statute is to require him to give *128the city correct information to the end that an investigation to some purpose may be made. If the claimant is not required to give the true date, where shall the line be drawn? If he may vary two days, why not two weeks or a month ? Who shall say what is and what is not a reasonable variation from the truth ?
The statute means just what it says. The notice must state the time when the injuries were received, and since our Code takes •no account of the fractional parts of a day in a case of this character, the notice must state the day upon which it is claimed that the accident occurred. The statute prescribes no particular form of notice, and mere informalities would not vitiate a notice, but the statement of the time and place of the accident is made a matter of substance, not merely a matter of form, and the courts are not authorized to change the statute. In support of these conclusions a few only of the numerous decided cases will be cited. (McHenry v. Kansas City, 101 Kan. 180, 165 Pac. 664; Peck v. Fair Haven etc. Co., 77 Conn. 161, 58 Atl. 757; Weisman v. New York City, 219 N. Y. 178, Ann. Cas. 1918E, 1023, 114 N. E. 70.)
It is not an answer to say that the city officials obtained correct [5] information from other sources and were not misled. The only right which plaintiff can assert against the city is the right granted by statute. Compliance with the law on her part is a necessary prerequisite to her right to institute this action, and an appropriate allegation of such compliance is an indispensable part of the statement of a cause of action.
Neither can appellant invoke the aid of section 6585, Kevised [6] Codes. The reason for the rule there announced arises out of our liberal Practice Act and the very generous statutes of amendment. But while pleadings may be amended at any time, even after verdict and judgment (Leggat v. Palmer, 39 Mont. 302, 102 Pac. 327), the notice required by section 3289 is not subject to amendment. At the expiration of the time limited by that section, the claimant is bound by the notice he has served, and his right to institute an action is to be tested by such notice.
The court did not err in excluding the notice tendered in this case.
*1292. Error is predicated upon the refusal of the court to retax [7] defendant’s costs. Counsel for appellant contends that the memorandum of costs must be filed before it is served, citing section 7170, Revised Codes. The record discloses that the memorandum was served and filed upon the same day, and the service and filing will be treated as contemporaneous acts. (Bacon v. Lamb, 4 Colo. 474; Wright v. Ross, 26 Cal. 263.) In construing a statute similar in its terms to section 7170, this court has held that the filing must precede or be contemporaneous with the service. If the two acts are performed contemporaneously, the statutory requirement is satisfied. (Courtright v. Berkins, 2 Mont. 404; State ex rel. Hall v. District Court, 34 Mont. 112, 115 Am. St. Rep. 522, 9 Ann. Cas. 728, 85 Pac. 872.)
Several witnesses for defendant were in attendance upon the [8] trial, but the order granting a nonsuit rendered their testimony unnecessary. Appellant objected to any allowance for witness fees or mileage, because the witnesses did not testify. The objection was properly overruled. The defendant was required to be prepared to meet the issues raised by the pleadings, and disbursements necessarily incurred in procuring the attendance of witnesses are within the contemplation of section 7169, Revised Codes. (In re Gallatin Irr. Dist., 48 Mont. 605, 140 Pac. 92; Hoskins v. Northern Pac. Ry. Co., 39 Mont. 394, 102 Pac. 988.)
The memorandum of costs was prima facie evidence of the [9] correctness of the items included therein, and the burden of overcoming this showing was upon the plaintiff (Kelly v. City of Butte, 44 Mont. 115, 119 Pac. 171), and this burden she failed to sustain. She made no showing, by affidavit or otherwise, as was done in In re Gallatin Irrigation District above, and the holding in that case is not an authority in this one.
The judgment is affirmed.
Affirmed.
Mr. Chief Justice Brantly and Mr. Justice Cooper concur.